Commit Graph
1109 Commits
Author SHA1 Message Date
Morion 23d3f9ae71 Autosave: give each project its own copy
The copy was named after the project, whose name comes from the mesh file, so projects made from one mesh overwrote each other's autosave. It is now `<stem>-<suffix>.tcraft`: from the saved file and its path, or a suffix of its own while the project is unsaved. A project opened from its copy keeps writing to it.

Fixes #851
2026-11-26 00:27:10 -05:00
chasse20 4c6c880568 Auto: Integrate main's coverage-only CPU baking
Register cfg(coverage) with the workspace lint and use the existing CPU tracer for coverage builds. Preserve normal GPU selection and the approved hover-test language guard.
2026-11-26 02:25:05 +00:00
chasse20 3f81dabc5a Auto: Serialize the hover regression with translation tests
Hold the shared language-test lock through app construction, frame stepping, and harness teardown. Integrate main at bbd68068 to pick up the layer-mask thumbnail controls.
2026-11-26 02:14:42 +00:00
skylar taylor-barrick dc2c80739b Bake on the CPU under coverage so the Sonar shards stop crashing at exit (#840)
Merged under Skylar's explicit override (Nightly 792) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
2026-11-25 20:02:16 -06:00
Chris Hassebrook bbd680686e Merge pull request #841 from vangel76/feat/mask-toggle-776
Switch a mask on or off with Shift+click, and leave mask view from the material thumbnail
2026-11-25 21:00:37 -05:00
chasse20 0bc7b1a95f Auto: Integrate rebuilt UV import from main
Bring in main at 1abfa79a with rebuilt UV import and saved layout support. Preserve the approved Painting and Baking hover regression and camera target validation.
2026-11-26 01:55:54 +00:00
chasse20 21073fbf76 Auto: Test texture-set hover previews and validate camera targets
Exercise pointer hover in Painting and Baking. Check that the hovered set reaches the 3D frame, leaving the row clears the preview, and selection stays unchanged.

Bring in camera.set validation from main. Reject malformed targets before changing camera state or advancing the session revision. Document and test that an omitted or null target preserves the current target.
2026-11-26 01:43:27 +00:00
Chris Hassebrook 1abfa79a89 Merge pull request #748 from vangel76/feat/uv-unwrap-on-import
Allow rebuilding mesh UVs in New Project
2026-11-25 20:43:13 -05:00
chasse20 632b2698c3 Auto: Preserve mask view on Alt-clicking the content thumbnail
Keep content selection active while Alt-click preserves the current viewport. Extend the Layers panel regression to exercise the gesture from Mask view.

All 20 Layers panel tests, UI Clippy, formatting, layering, and the isolated UI WebAssembly check passed.
2026-11-26 01:12:03 +00:00
chasse20 21b86d98f6 Auto: Validate rebuilt UV layouts and trim save and reload allocations
Integrate main's dialog and bake-state changes. Reject inconsistent saved layouts at archive and session boundaries, and preserve vertex splits between independently packed materials.

Stream UV coordinates in bounded batches, transfer stored mesh bytes on successful reopen or reimport, and skip import reports that those callers discard. Set the archive version on the owned save snapshot to avoid copying the layer graph twice.

Cover material boundaries, malformed snapshots, locked coordinates and keyboard activation. Update the format and command documentation.
2026-11-26 01:03:44 +00:00
chasse20 940a526539 Auto: Integrate main and preserve mask toggle targeting
Allow Shift-click to toggle an explicit layer without selecting it. Keep the argument-free shortcut inactive when selection is empty. Focus the toggled thumbnail and expose its translated on or off state.

Build the export preset filename lookup once per unique save and preserve filename-alias handling.
2026-11-26 00:59:41 +00:00
chasse20 565fdaf02d Auto: Integrate main and fix texture set hover checks and focus
Preserve main's bake and export updates in the prepared merge. Expose
Painting row selection to AccessKit and draw a distinct keyboard focus
outline.

Derive test coverage from flat base color so lighting cannot hide
covered samples. Check all exclusive neighboring pixels in one pass.
2026-11-26 00:53:34 +00:00
chasse20 b7abae10d7 Auto: Integrate main and strengthen camera target regression tests
Resolve the view-command imports so main's environment lighting and the shared target parser both compile. Clarify the command help, parse each camera angle once, and name the existing camera bounds.

Cover the complete pose and revision on rejection, and verify that omitted and null targets preserve the pivot while other settings change.
2026-11-26 00:42:41 +00:00
vangel76 fea4a5e627 Shift+click on a mask thumbnail switches the mask on or off, the material thumbnail leaves mask view
Shift+click on a mask thumbnail runs mask.toggle on that layer instead of selecting the mask.
The mask thumbnail exposes a Mask off description while the mask is bypassed.
Clicking the material thumbnail returns the viewport from mask view to the material view.
2026-11-26 00:53:35 +01:00
Chris Hassebrook cd4e296743 Merge pull request #738 from MMexicann/patch-4
Reject invalid export preset save options
2026-11-25 18:43:18 -05:00
Chris Hassebrook d3f02c6e07 Merge pull request #744 from MMexicann/patch-8
Keep the current view when camera selection is invalid
2026-11-25 18:39:08 -05:00
Chris Hassebrook c3b354a39a Merge pull request #741 from MMexicann/patch-7
fix(resources): preserve text labels that contain path separators
2026-11-25 18:37:08 -05:00
Chris Hassebrook 4527be35a1 Merge pull request #807 from vangel76/fix/gizmo-ring-804
Keep the projection frame's turn ring the same size at oblique angles
2026-11-25 18:30:08 -05:00
Chris Hassebrook 9e1daa409a Merge pull request #830 from vangel76/fix/sample-project-828
Open Sample Project starts in a Samples folder that holds the built-in sample
2026-11-25 18:27:15 -05:00
chasse20 2f118603bf Auto: Integrate main and prevent unique saves from replacing presets
Validate save options before decoding preset maps. Select the replacement slot from the caller's rename intent and reject a full-library append before searching for a suffix. Keep explicit renames available at capacity and return an error if no unique name is available.

Avoid temporary name copies on replacement and add a regression for maximum-length names that collide after suffix truncation.
2026-11-25 23:13:08 +00:00
chasse20 8eca90cd98 Auto: Integrate main and fit frame turn rings in perspective
Fit the sampled ring with one camera transform and fixed-size storage. Keep a visible ring usable when a full arrow step crosses behind the camera, and cover close views and the edge-on cutoff.

Check the project visibility setting before building either gizmo and borrow fill sources directly for the placement check.
2026-11-25 22:54:10 +00:00
chasse20 05ffb1cc30 Auto: Integrate main and preserve existing sample projects
Stage bundled samples and install them without replacing a file that
appears during the copy. Record the Material Ball’s provenance and
clarify the desktop picker fallback and browser behavior.

Validated with Linux UI tests, focused release tests, formatting,
Clippy, layer checks, and WebAssembly compilation.
2026-11-25 22:50:07 +00:00
chasse20 e1f73ba237 Auto: Integrate main and release text buffers before image import
Keep the generated filename regressions independent for text-derived and explicit labels. Release owned font bytes after rendering and coverage after PNG encoding to reduce peak heap during import.
2026-11-25 22:46:05 +00:00
chasse20 af20642eec Auto: Integrate main and avoid redundant import-row scans
Apply single-row usage edits directly and reserve the full-list pass for a multi-row selection. Borrow file extensions for case-insensitive material checks, including MaterialX routing from main.

Extend dialog coverage for filtered selections, protected material rows and edits outside the selection. Clarify when a queued material import releases its dialog row.
2026-11-25 22:45:02 +00:00
chasse20 a24bce1b3b Auto: Integrate main and reject malformed camera arguments
Integrate main at 2d86cc04. Reject top-level arrays and scalars before camera.select can reframe the mesh. Clarify intentional default selection in command help and extend the regression to verify the saved pose, bookmark, and revision.
2026-11-25 22:38:11 +00:00
Chris Hassebrook 2d86cc04ba Merge pull request #799 from Rebornim/feat/bake-pass-2
Bake mode pass 2: settings layout, bakers list, sync, automatic cage and map preview
2026-11-25 15:34:55 -05:00
chasse20 54ae40b14a Auto: Integrate main and fix bake selection and preview lifetimes
Validate every selected texture set before starting a real or quick bake. Apply linked settings atomically, reject invalid copy selectors, and preserve only the maps needed by a display preview.

Reuse fitted geometry across streamed maps, bound cage projection scratch, and stop discarded work. Release stale scene and thumbnail resources on project replacement. Keep pending imports safe across updates and restore keyboard focus after bake menus and dialogs close.

Add regressions for selection, cancellation, project replacement, and keyboard navigation. Retain main's packaging, dependency, and export changes.
2026-11-25 19:55:33 +00:00
chasse20 fc04f96857 Auto: Integrate main and fix generator masks, caches and previews
Resolve Micro Height against the requested draw and current atlas layout. Invalidate whole-map fields after geometry edits, reuse admitted fields across tiles, and stop rust runoff at gaps between UV islands.

Render configured preview inputs, cancel evicted image requests, and clear stale previews and point picks when the project changes. Reduce temporary curvature fields and repeated occlusion sampling work.

Preserve generator IDs and saved values while updating picker wording. Consolidate generator regression tests and credit the Nightly icon set inherited from main.
2026-11-25 19:25:49 +00:00
vangel76 cbc6669f48 Ship the sample project as assets/samples and copy it into the Samples folder 2026-11-25 16:44:16 +01:00
vangel76 9c2393655e Open Sample Project starts in a Samples folder that holds the built-in sample 2026-11-25 11:21:23 +01:00
Rebornim eda6f834de Generators: a whole-map field's sampled mesh map is a type of its own (clippy type_complexity) 2026-11-25 07:42:35 +00:00
Rebornim 5f33d84f1e Generators: only the session's own composite drops anchor heights it no longer reads
Thumbnails, solo layers and histograms evaluate cut-down stacks without
every reader: they now build only missing heights and drop none, so a
thumbnail refresh no longer throws away the viewport's. Doc full stops on
the touched preparation functions.
2026-11-25 07:40:42 +00:00
Rebornim 0d1f687b9a Generators: a histogram's cut stack reads the anchor heights the whole stack prepared
A histogram evaluates the stack cut below an effect: it rebuilt every
anchor height under the cut's stack key, replacing the viewport's, so the
next render built them again. A cut now builds only heights that are
missing and leaves the set's prepared ones as they are. Review tidying:
blank lines, histogram scan comment, the field cache test reads the
cache's size.
2026-11-25 07:35:22 +00:00
Rebornim e7fa9730f2 Generators: drips take no rust from lower on the axis, histogram ends hold at a hard step, Use Texture's X projection scales about the centre
- a drip ray past a ridge no longer carries rust up from texels lower on
  the drip axis (the fitted captures move closer with the check)
- position 0 stays all black and 1 all white at contrast 1, as the scan's
  ends are documented (3D Distance at offset 0, Dripping Rust spread 0)
- Use Texture's triplanar X projection mirrors U about the bounds' centre
  like the scale it uses; custom grunge keeps its fitted placement
  (identical at whole scales, which every capture used)
2026-11-25 07:26:15 +00:00
Rebornim ff298779c2 Generators panel: Restore defaults keeps the Resolution band, the input card offers anchors below the owner, a swapped kind drops its point pick, size columns step with the arrow keys
- Restore defaults resets the Parameters only, as its band says (it was
  disabled when only the resolution differed, yet reset it otherwise)
- an inherited generator's slots list the anchors below both the owner
  and the instance, as the Properties picker does (others were refused)
- a pick armed on a generator swapped to a kind without that point is
  dropped
- a focused size column takes the arrow keys, each press one step
- the picker snapshot hovers the tile by its ListBoxOption role
2026-11-25 07:16:06 +00:00
Rebornim 30dcceb3ef Generators: mask comparisons in tests reject missing texels; the micro blur's kernel is sampled once per pass
bake_resolution checks the mask's length again (the zip let a short or
empty mask pass), as do the texture and section test helpers.
2026-11-25 07:16:06 +00:00
Rebornim 44b1bc0273 Generators: whole-map fields keyed by a coverage hash taken once per evaluation and by each mesh map's bake size
The field cache read every 31st texel's triangle on each lookup (once
per tile plan) and could miss an edit between samples; the evaluation
now hashes every texel once, on first use. A mesh map's bake size joins
its key (one allocation read as another layout), and a hit moves to the
most recently used end.
2026-11-25 07:12:15 +00:00
Rebornim eaf3ad1c2a Generators: every anchor height a render reads stays prepared, built lowest anchor first at the working size
Anchor heights are kept while the texture set reads them (no 8-entry cap
that dropped a ninth anchor to black), built in the anchors' draw order
as their topmost reader reads them (an anchor's height can hold readers
of lower anchors; layer ids no longer decide), rebuilt when the working
atlas size changes, and prepared before the generator maps that read
them.
2026-11-25 07:07:40 +00:00
Rebornim 333605327e Generators: a micro detail saved before Micro Details renders as saved while its generator stays on the earlier model
MicroDetails.earlier marks a migrated {anchor, amount}: an earlier-model
generator adds the anchor's height times the amount to its signal as #395
did; microAnchor/microAmount keep that reading on the earlier model, and
any Micro Details control moves the generator onto the reference's
controls and the anchor's curvature.
2026-11-25 06:57:21 +00:00
Chris Hassebrook 14f6502029 Merge pull request #771 from vangel76/fix/layer-target-menus-768
Layers: open context menus from material and mask thumbnails
2026-11-25 01:07:29 -05:00
FredApps f9ba93a7be Give each confined export temp a unique short id
A directory-scoped batch previously reused one .export.{pid}.{attempt}.tmp
namespace of 256 names for every staging file and backup. Exports larger
than that limit, or overwrites of about half as many existing files, failed
even when every output path was valid. Each allocation now gets its own
short identifier, while the collision retries stay within that namespace.
2026-11-25 11:07:53 +07:00
FredApps 77850f6374 Use a short temp name for confined export writes 2026-11-25 10:54:11 +07:00
FredApps 0e1d9dfff1 Export templates: reject in-tree symlink folder aliases
Stage capability-scoped temps in the output root so the mid-batch
escape test can actually install a parent symlink, and refuse
export folders that are symbolic links so two names cannot resolve
to the same file.
2026-11-25 10:43:23 +07:00
Rebornim d2a4b44a1d Back-to-back cage test: chunk the indices with as_chunks_mut 2026-11-25 03:33:19 +00:00
FredApps 6c72fcb34e Fix Windows test cfg gate for write_batch_atomic_in_dir_with_hook 2026-11-25 10:22:16 +07:00
Rebornim c4958764f1 Automatic cage: fit along a vertex's own normal where welding cancelled it
Parts welded back to back (or a double-sided sheet) sum to a zero averaged normal; the transfer ray there falls back to the surface normal, so the fit now measures along the vertex's own normal too instead of finding no direction and keeping only the padding
2026-11-25 03:21:35 +00:00
FredApps 0535d1ddc6 Export templates: reject file/folder conflicts and confine writes with cap-std 2026-11-25 10:11:54 +07:00
FredApps 454fb75295 Merge remote-tracking branch 'origin/main' into pr-824 2026-11-25 09:51:09 +07:00
Rebornim e0c4fc49e9 Map-alone bake test: clear the colours the sample read when it baked 2026-11-25 02:36:37 +00:00
Rebornim 1d7669c038 Bake mode pass 2: synced sets check only that their values agree
The edited set's checks already bound every value it changes, so a legacy value it may keep (flat parameters, presets) also reaches the sets sharing it; a synced set is refused only when a copied value clashes with its own, such as a minimum above its maximum. Also fixes the new tests' sample resolution and a clippy lint
2026-11-25 02:22:41 +00:00