Commit Graph
577 Commits
Author SHA1 Message Date
chasse20 ea31cd4b09 Auto: Integrate main into the reviewed History and Log changes
Preserve History step tracking alongside the incoming path-cache replay and verify the Log append path for autosave failures.
2026-11-29 20:24:52 +00:00
chasse20 a020271842 Auto: Integrate main and streamline History and Log panels
Name the scrollbars for assistive technology. Verify that resizing keeps the whole current History row visible and that a horizontally scrolled Log entry copies with its original line breaks.

Borrow visible History labels and reuse formatted Log text to reduce temporary allocations. Validate with the focused Linux suite and the WebAssembly checks.
2026-11-29 20:18:13 +00:00
Chris Hassebrook 7db0996cc7 Merge pull request #171 from justinjohn0306/paths/cache-channel-key
Path cache follow-up: skip untouched paths, cover channels and alpha images, cap memory
2026-11-29 15:04:47 -05:00
Rebornim 0b0a5337f6 Bring the current History step into view when a full history repeats a name 2026-11-29 10:22:30 +00:00
chasse20 b5d9abbb91 Auto: Fix texture set resize ownership and reduce memory peaks
Reject resize results from another project. Release stale pixels and caches before retrying a resize within the original project, preserving intervening edits and one-step undo.

Fix rectangular height sampling, seam-boundary coverage, malformed set selectors and saved channel ordering. Reduce temporary composite and mesh-partition storage, and pack mixed-aspect trace textures without changing their samples.

Keep channel actions reachable in short windows, strengthen export and modal regressions, document the control commands and remove unrelated formatting changes.
2026-11-29 08:04:24 +00:00
SteamSmithandClaude Sonnet 5.5 f28d4d8b64 fix(paths): count each snapshot's tile table against the path cache budget
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:30:56 -05:00
Rebornim 41b8a69818 Merge upstream main into the texture sets pass
# Conflicts:
#	crates/formats/src/mesh_import/external.rs
#	crates/ui-egui/build.rs
#	crates/ui-egui/i18n_build.rs
#	crates/ui-egui/src/lib.rs
#	crates/ui-egui/src/menus.rs
#	crates/ui-egui/src/shelf.rs
#	crates/ui-egui/src/shelf_updates.rs
#	crates/ui-egui/tests/i18n_build.rs
#	crates/ui-egui/tests/it/shelf_updates.rs
2026-11-29 06:30:40 +00:00
SteamSmithandClaude Sonnet 5.5 778d33374a Merge main into the path cache follow-up; pace eviction scans
render_paths runs inside Session::while_painting_paths (panic-safe) again. evict ran after every
appended path and charged every kept snapshot, so a repaint of n paths scanned up to n snapshots
n times; EvictPacer scans only when its upper bound on the retained bytes passes the budget.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:18:34 -05:00
Chris Hassebrook b65ef83c63 Merge pull request #223 from simonhull/fix/panic-safe-session-edit
Restore the document when a command panics mid-edit
2026-11-29 00:08:00 -05:00
Chris Hassebrook 8e6c845272 Merge pull request #206 from Silvertree2010/fix/201-launcher-install-texturecraft-ca
Find MaterialCraft in the sibling launcher install folder
2026-11-29 00:07:13 -05:00
SteamSmith 219b3490c8 Merge remote-tracking branch 'origin/main' into work/223 2026-11-28 21:06:32 -05:00
SteamSmithandClaude Sonnet 5.5 aabf1c06dc fix: a failed or panicking edit marks the restored document's tiles dirty again
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:55:04 -05:00
SteamSmithandClaude Sonnet 5.5 90d631a3c4 merge: origin/main into the path cache follow-up
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:34:10 -05:00
SteamSmith 5f116a74cf Merge remote-tracking branch 'origin/main' into review/206-fix
# Conflicts:
#	crates/engine/src/link_cmds.rs
2026-11-28 19:20:45 -05:00
Rebornim ea0cb24113 Merge upstream main into the texture sets pass 2026-11-29 00:20:33 +00:00
chasse20 b1a0944f89 Auto: Integrate main and resolve catalog embedding conflict
Preserve distinct-character collection for font subsetting alongside main's catalog accessor and compressed wasm embedding. Exercise the generated accessor with both populated and empty catalogs.
2026-11-28 19:13:49 +00:00
SteamSmithandClaude Sonnet 5.5 589eb4c764 test(path-cache): a filled path above an edit keeps its tiles from the cache
Covers the footprint recorded by commit_fill; emptying it left every other test green.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:29:31 -05:00
SteamSmithandClaude Sonnet 5.5 0097f99053 test(engine): edge cases for find_installed_tool (folder named like the tool, no parent, missing app folder)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 10:30:31 -05:00
chasse20 3b858f1a17 Auto: Integrate main with rectangular texture exports 2026-11-28 08:55:08 +00:00
chasse20 c6a8a86247 Merge reviewed target into TextureCraft rectangular textures 2026-11-28 08:38:21 +00:00
FredApps 2332602c4e web: embed fonts, catalogs, the icon font and the studio HDR deflated
The web build is under a 24 MiB download budget. Its embedded data is
now stored deflated and inflated once at startup: the craft-fonts faces,
the translation catalogs, the Phosphor icon font and the studio
environment HDR. egui's default faces come from craft-ui's deflated
copies instead of egui's default_fonts feature, and the engine's
built-in text fonts (Ubuntu Light, Hack) come from the same copies
through text_cmds::provide_built_in_fonts. Desktop builds are unchanged.
2026-11-28 15:37:56 +07:00
chasse20 31d1b7b241 Auto: Integrate main and honor brush preview channel toggles
Bring in main's project rename changes. Use the existing preview fallbacks for disabled Base Color, Metallic, and Roughness channels while preserving their values for re-enabling. Cover the rendered preview with a regression test.
2026-11-28 08:27:36 +00:00
chasse20 f2176331a0 Auto: Integrate main into Paint Properties
Preserve desktop autosave recovery and retain the package and cooked maps of linked materials used in effects. Keep both lockfile dependency entries and the approved Paint Properties changes.
2026-11-28 08:08:38 +00:00
chasse20 32c89f35f4 Auto: Integrate main and repair paint, asset, and export previews
Keep main's Assets, Export, and headless parity changes alongside the unified Paint Properties sheet. Preserve history on fully blocked strokes, release obsolete preview resources, and redraw brush and stencil pictures at the correct scale and placement.

Load visible thumbnails on demand, resize common custom previews from borrowed pixels, and release stale file textures and project notifications. Index favorite ranks per draw and remove unused resources without repeated library scans.

Preserve export folds across job startup. Share idle plans between the footer and file tree, borrow running-job plans, and avoid redundant label measurements and template copies. Collect distinct catalog characters before sorting them for font subsetting.

Repair the Assets snapshot setup, isolate saved-brush test files, and clarify affected code and regression fixtures.
2026-11-28 08:00:03 +00:00
chasse20 b955de0e4d Auto: Fix MaterialX filename collision test
Use a real duplicate texture path in the fixture so literal token substitution remains intact. Validate the engine integration suite with the updated main.
2026-11-28 07:31:51 +00:00
Chris Hassebrook 7f16522d87 Merge pull request #889 from Rebornim/fix/images-used-material-effects
Assets: Remove unused keeps the package and maps of a material linked in a content effect
2026-11-28 01:41:44 -05:00
chasse20 4c1d486fc4 Auto: Integrate main and fix rename validation and export naming
Preserve both branches’ engine tests. Validate the project name before applying other dialog settings, clear discarded text undo history, and keep an unsaved project’s autosave filename stable across renames.

Expand export tokens once, preserve literal text in names, and sanitize flat stems directly. Reuse the dialog’s name buffer and update the command documentation and generated headless parity report.
2026-11-28 06:39:00 +00:00
Chris Hassebrook d41cf01f7f Merge pull request #827 from Rebornim/feat/export-pass
Export pass: layered PSD, per-map size, shader settings, Esc, hover preview, look and spec-backed templates
2026-11-27 22:55:22 -05:00
SteamSmithandClaude Sonnet 5.5 14f02e5fe7 test(path-cache): a snapshot is charged only for tiles no kept snapshot shares
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:17:44 -05:00
Rebornim 31bf2a58ca Assets: Remove unused keeps the package and maps of a material linked in a content effect
images_used counted a linked material's package and cooked maps only on a fill layer, so
Remove unused dropped them (and a smart material left them out) when the link sat in a
content fill effect.
2026-11-28 02:33:59 +00:00
SteamSmithandClaude Sonnet 5.5 0ec4775ef6 fix(path-cache): charge each snapshot for the tile buffers it alone keeps alive
evict charged snapshot k for path k-1's tiles only, but snapshot k holds every
pixel after k paths and shares tile handles with the others. After an older
snapshot was evicted, a newer one could retain a whole older generation (full
fill, one-tile stroke, full fill, one-tile stroke) and the 256 MiB cap was
exceeded. Walk newest to oldest and charge only handles not already held by the
live pixels, the edited snapshot or a kept newer snapshot. Also drop the
debug_assert from non-test code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:30:56 -05:00
SteamSmithandClaude Sonnet 5.5 8c06badf77 fix(engine): find MaterialCraft in the launcher's sibling folder, tested in a temp dir
A pure find_installed_tool(app_dir, exe) is tested in a temp folder (sibling
found, beside-the-program wins, missing is None) instead of writing into target/.
The 'did not start' hints name the sibling folder; control-protocol.md lists the step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:16:33 -05:00
Rebornim 7e0bd1e6a2 Assets: the refresh popup's tests move a rewritten file's time on
Main's Resources Updater counts an equal-size file whose modification
time didn't move as unchanged, so a rewrite in the same millisecond as
the import read as up to date and the test failed on the gate.
2026-11-28 00:33:49 +00:00
chasse20 091869033a Auto: Preflight export paths and label tiled atlas previews
Reject selections that use one output path as both a file and a folder before rendering or starting a desktop export. Expose tile metadata in export.plan and use it to label atlas previews, including ambiguous filenames.

Write quantized 8-bit PSD rows directly into the merged-image buffer. Cover path conflicts in both orders, partial desktop writes, and visible atlas captions with regression tests.
2026-11-28 00:21:21 +00:00
Rebornim 077ed13751 Merge main into feat/brush-props-pass 2026-11-28 00:16:41 +00:00
Rebornim 97bc67f943 Merge upstream main into feat/assets-pass-2
Main's Resources Updater replaces the shelf's own resource.update and
resource.reload: the shelf menu's Reload and the refresh popup's
updates now run main's resource.status and resource.update, and Show in
reads the project's saved source path. A renamed image keeps its source
record, so it still follows its file.
2026-11-28 00:01:03 +00:00
Rebornim 145a4db4ec Assets: renaming an image also moves a generator's texture, grunge, micro details and Grayscale Conversion image 2026-11-27 23:08:28 +00:00
Rebornim 41a7d1d8a6 Keep the texture set list's keys and Escape from the app's shortcuts
Escape drops a rename or description edit even once the window's cancel has taken it from egui's input. With the pointer over the list, F2 renames the selected set and Shift+F10 or the Menu key opens its menu instead of switching the viewers layout or the mode. Escape is no longer a painting cancel while a dialog is open, so the channels window closes on it. A texture set name over the length limit is refused for its length.
2026-11-27 23:04:35 +00:00
RebornimandClaude Opus 5.5 088a217d7b Merge main into feat/export-pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:00:30 +00:00
chasse20 b93c1a285d Merge validated target into TextureCraft bake review 2026-11-27 21:36:52 +00:00
chasse20 e274358a56 Auto: Integrate main and fix bake freshness and cancellation
Preserve Resources Updater links and bake provenance when replacing or clearing mesh maps. Keep unrelated maps on unchanged UV atlases, discard partial results from failed workers, and reject overflowing texture-set indices.

Track vertex colors, part assignments, tangent frames and the packed file used by material-color bakes. Share the common source fingerprint across each task's selected maps. Add reimport, cancellation and atlas regressions, update the control protocol, and clarify the affected code.
2026-11-27 21:00:57 +00:00
Chris Hassebrook 06a4758caa Merge pull request #880 from SteamSmith/fix/open-in-materialcraft-private-folder
Open in MaterialCraft stages its package in a private folder
2026-11-27 13:50:17 -05:00
Rebornim fe0208f5d3 Count no high part as unused while a set matching "Always" bakes from it, note the occlusion Rust Runoff reads, and keep the maps still queued when a bake is canceled 2026-11-27 09:13:54 +00:00
Rebornim 3c55965755 Set and report the Brush section's Projection settings through tool.brush
The Projection band's Angle fade from / to and Stamp depth rows had no
command behind them, and tool.brush took Size Space (screenSpace) without
reporting it, so an agent could neither set nor read what the panel shows.
tool.brush now takes angleFade [from, to] and stampDepth, refuses a
malformed angleFade before changing anything, and returns all three.
2026-11-27 08:34:42 +00:00
Rebornim 44dceb6059 Paint every brush tool's strokes through the stencil, set in a Stencil tab
The stencil now shapes Paint, Eraser, Smudge and Clone strokes as well as
Projection ones: its gray times its alpha masks the stroke, read from the
viewport's point of view, and the tool keeps painting its own material.
Only the Projection tool paints the image's colors. In the 2D view, where
the stencil isn't drawn, only the Projection tool uses it, as before. The
viewport shows the stencil and S + drag places it for every brush tool.

Every brush tool gets the Stencil tab. Its section is a slot showing the
stencil image (a click opens the picker of the project's textures with
Import... first, × takes the stencil away, an image dropped on it becomes
the stencil; the S-drag keys are its tooltip), a Tiling mode list (No
Tiling, H and V Tiling) with a picture per mode, Scale, Rotation and
Position X / Y stacked beside a picture of the view with the stencil
placed in it, and Overlay opacity. The STENCIL caption's reset puts the
stencil back in the middle of the view. The sliders change it through
tool.stencil.
2026-11-27 08:25:57 +00:00
Rebornim 2cf3d2ad67 Turn pen pressure on Size on and off from the Size row
BrushSettings gains size_pressure (on by default and for brushes saved
before it existed, so old projects paint as before). Off, a light pen
paints at full size in both views; tool.brush takes and reports
sizePressure. The Size band's rows keep a pen button slot, Minimum Size
greys while pressure is off, and the brush preview drops its pen taper.
2026-11-27 08:25:57 +00:00
Rebornim 5cfdfcd4ad Check the viewport padding rebuild on the ball's set that has texels past a seam 2026-11-27 08:17:02 +00:00
Rebornim 8dfe916224 Keep only the texels past a seam beside the island-edge padding, so padding across seams holds one full-size map instead of two 2026-11-27 07:33:26 +00:00
Rebornim fcd3644744 Put a blank line after the multi-line early-exit guards in the texture set code
Spacing only (CODE_STYLE: a blank line after a multi-line if/let-else guard), in methods this branch adds or changes.
2026-11-27 06:44:02 +00:00
Rebornim 8032697c99 Switch the channel off on the layer the Manage channels test reads
The test read the set's bottom layer but switched roughness off on the selected one, so it stopped at its own precondition instead of checking textureSet.channels.
2026-11-27 06:41:17 +00:00