Merge the latest main project configuration and compositor changes into the reviewed PR tree while preserving the saved shelf repair and removal of the unstable disabled-mask anchor test.
Prevent preset file collisions, preserve trusted headless libraries across project changes, and keep untrusted sessions in memory. Support named and legacy preset files, expose session presets in the shelf, invalidate stale previews, and restore wasm integration guards.
Bound directory selection, avoid deferred thumbnail settings copies, and calculate candidate filename keys once per collision check. Split the new preset types and complete scoped cleanup.
Keep file-picker answers tied to their original Project Configuration opening, including after UI layout resets.
Split ProjectConfig and TempDir into dedicated files, complete scoped naming/comment/spacing cleanup, and add delayed-answer regressions and a Project Configuration snapshot.
Validated with the UI release suite, workspace Clippy, wasm checks, formatting, and diff checks.
Retain intermediate filter stages needed by mask anchors, with measured
buffer capacity and release checks. Preserve main's generator and layer
controls while fixing instance-owner validation, micro defaults, inactive
anchor labels, and clipboard dependency reporting. Move MicroDetail into
its own module and complete scoped cleanup.
Validated affected release suites, Clippy, wasm, layering, formatting,
panic_hunt, and the final diff.
Add file.changeMesh for trusted local callers while preserving layers, remembered mesh paths, imported images and bake resources. Retain unchanged-layout paint preservation, cache/cage invalidation and stale-bake cancellation safeguards.
The temporary Change mesh menu entry is removed. The Project Configuration 3D Mesh UI will follow separately.
Contributor: @vangel76.
Validated by fresh Ubuntu and Windows CI at the exact head-equivalent tree; QA confirmed the new dependency inputs and named backend/safety regressions.
The UV tile list is read only with a hint to Texture Set Settings (the
old Painter note was wrong here). The normal map format is skipped when
the project already has it, a mesh already changed is not read again by a
retry, and the tests now show strokes moving or staying with the Preserve
box.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PROJECT SETTINGS sets the project's normal map format on OK and shows the
UV tiles read only. Import settings holds Preserve stroke positions on
mesh, passed as preserveStrokes to file.changeMesh / file.reimportMesh.
A failed OK no longer re-fires from a stored Enter.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Select... picks another mesh file (ticks Reimport mesh), OK runs
file.changeMesh, or file.reimportMesh when only Reimport mesh is ticked.
The Display panel keeps its own rail icon and View entry.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The file.changeMesh command stays (trusted local command API and the
control channel); the Project Configuration window will offer it in a
later PR. The command is no longer listed under the Edit menu.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Path gets a pen nib, so it no longer looks like Polygon fill's polygon;
Projection takes the cube-focus icon and Geometry mask a crossed selection.
The color picker copies every channel of the material under the cursor, so it
is now called the material picker (its command id and key stay).
Anchor point effects can now sit in a mask, where they record the mask
value at their place for fills and generators above. Generators take an
anchor's height as micro detail (microAnchor, microAmount). Effects can
be renamed from the Layers panel, and the anchor picker lists anchors
under their own heading.
Closes#389
A bake started in the app bakes the set's maps one after another (BakeTask::run_streaming, one bake per map, same pixels as a single bake) and streams each finished map from the worker thread. One map is installed per UI poll into the session's bake preview (not the document); the 3D view follows the newest map raw on the model, with maps and sets not baked yet shown neutral, and the bake bar names the stage. The bake bar picks Follow Newest Map, a finished map or Material. The previous view mode comes back when the bake ends, is cancelled or Bake mode is left; painting is paused while a bake is shown. bake.preview, ui.bake.start and ui.bake.cancel expose it on the control channel. New strings are translated in every shipped language.
Save the current brush (size included) and the painted channels as a named
preset kept as a .tcbrush file in the data folder's brushes folder. Use,
rename, replace and delete them from a Brush presets popover in the brush
options and from the shelf's My brushes list. New commands:
brush.preset.store, brush.preset.rename, brush.preset.delete;
brush.preset.list and brush.preset.apply now cover the user's presets too.
Older bare .tcbrush files are picked up under their file name.
Reimport mesh only re-read the project's own copy of the mesh, so there was no way to put the layers on a different mesh. The new command takes a mesh file, keeps layers, texture sets and settings, and carries painted strokes over by default.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
63 -> 72 materials. Cobblestone uses rounded cells with sunken joints, gravel
fine Voronoi stones, plaster a soft troweled tooth; linen a coarse weave, wool
and moss a soft sheen.
A pen lifts reporting no pressure, and a tap paints on that frame, so a tap
painted at full pressure. The release now keeps the pen's contact pressure (a
touch without pressure, such as a finger, starts fresh).
Browsers report pen pressure only for pens that send touch events; desktop
browsers deliver pens as a mouse, so the docs say so.
A UV tile with a lower resolution than its atlas block fills the block's
corner, so it has fewer texels per UV unit. Neighbourhood filters (blur,
sharpen, warps, bevel, glow, ...) and height-to-normal slopes used the block's
texel density for every tile, so such a tile blurred twice as wide and showed
twice as steep slopes in UV space.
TextureSet::block_scales gives each block's share; the compositor filters each
block at its tile's radius, texture export and the CPU path tracer scale the
slope by it, and the display packs it into the Extra texture's alpha for the
viewport and GPU path tracer shaders (parallax too).
The 2D view painted at full pressure whatever the pen reported; it now reads
the same touch force as the 3D view. Docs say where pen pressure works today
(Windows Ink and the browser) and that Linux and macOS pens arrive as a mouse
until the windowing layer reports them.
layer.add.image read the projection params only when `projection` was
given, so an offset or rotation alone was dropped. The features list no
longer promises a cylindrical offset.
Flipping every fill image on a normal channel in a DirectX project
would also flip the OpenGL maps MaterialX import puts there, and change
how existing DirectX projects look. Fill images read as before; the
setting covers mesh map images (converted when set, so the tooltip
says to set them again) and the export default.
A fill's properties showed only its projection and scale, and
layer.fill.projection rebuilt the projection from its params, so
changing the scale reset a rotation set before and no offset could be
set at all. The command now changes only the fields it is given
(scale, also per axis; rotation; offset; sharpness; axis) and keeps the
rest while the kind stays the same. Properties show the UV rotation and
offset, the tri-planar blend sharpness, and the axis and world offset
of planar and cylindrical projections.
The project's normal map format (OpenGL or DirectX) could only be set
by command or a template, and fill images on a normal channel were
always read as OpenGL, so a DirectX map's detail came out inverted.
Texture Set Settings now has a Normal map format row, and a fill's
image on a normal channel is read in that format, as mesh map images
already were. A change of format recomposites the sets.
Autosaves, smart materials, brush and export presets, project templates
and UI layouts always went to Documents/TextureCraft, which fills the
system drive. Settings > Folders > Data folder points them anywhere;
the choice applies on restart, and an export folder still at its
default follows it.
Refs #105.
Keeps both sides of the translation tables, AGENTS rules and the formats module list;
material files in the browser load before the ask-to-save step (they add a layer, not a
new project); Arabic for the eight MaterialCraft strings; menu parity regenerated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fill channel's source menu offered a uniform value, procedurals and
anchors, but no image, so a normal or roughness map could not be put on
its channel. The menu now lists the image resources and Import..., and
an image dropped from the Assets panel onto a channel becomes its
source. The mesh map slots share the same menu and drop target.
Fixes#127.
With an effect selected, Delete removed its whole layer and Ctrl+D
duplicated the layer. Both now act on the effect, like the clipboard
shortcuts; effect commands default to the selected effect.
An effect's context menu copies, cuts and pastes it, and Ctrl+C,
Ctrl+X and Ctrl+V act on a selected effect (pasting a copied one above
the selected effect, or on top of the selected content or mask).
Painted strokes come along, resampled to the target set; generators
and other one-stack effects go to their stack, and a fill reading an
anchor point needs one below its new layer. effect.copy, effect.cut
and effect.paste share the layer clipboard.