250 Commits
Author SHA1 Message Date
FredApps 026a24f439 Merge pull request #220 from vangel76/fix/179-2d-brush-cursor
2D view: draw the brush outline under the pointer while painting
2026-11-13 02:29:18 +01:00
test-bit-sys 6270aeca05 fix(engine): reset paint target to content when undoing mask (#307) (#398)
* fix(engine): reset paint target to content when undoing mask (#307)

* fix(engine): resolve mask_owner in after_history and clear below cache in test (#307)
2026-11-12 17:56:41 +01:00
test-bit-sys a969983a52 fix(engine): resolve resource stem and list available names in layer.add.image (#337) (#391)
* fix(engine): resolve resource stem and list available names in layer.add.image (#337)

Accept an unambiguous file stem in layer.add.image alongside the full resource name with extension. When the requested resource is not found, list the available resources or guide the user to resource.import.

* fix(engine): filter image lookup stems and hints to decoded images (#337)
2026-11-12 17:56:34 +01:00
test-bit-sys e03e6fae6a fix(engine): reject unparseable colour parameters with an error (#369) (#390)
* fix(engine): reject unparseable colour parameters with an error (#369)

When a colour parameter cannot be parsed, fail with an error describing the expected color format instead of silently falling back to defaults.

Update color_param to return an explicit error and propagate across commands that accept color values.

* fix(engine): validate f32 overflow, pre-parse state mutations, and keep UV pairs strict (#369)
2026-11-12 17:56:19 +01:00
BFlat b1806e4010 Merge pull request #231 from vangel76/fix/217-generator-offset
Add an offset slider to mesh-map generators
2026-11-12 08:52:04 +07:00
vangel76andClaude Sonnet 5.5 f1737d7384 Merge upstream/main into fix/179-2d-brush-cursor
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 21:50:46 +01:00
chasse20 3295cec476 Merge main and preserve path cursor behavior 2026-11-10 22:47:15 -05:00
chasse20 76b9a30f63 Guard stored paths and fix History redo jumps 2026-11-10 22:23:51 -05:00
chasse20 906b22630f Fix History jumps through pending path edits 2026-11-10 21:59:49 -05:00
chasse20 885dbd1f0a Fix native-only items in wasm builds 2026-11-10 21:45:32 -05:00
chasse20 f7be672c92 Extend rays for displaced fill copies 2026-11-10 21:12:29 -05:00
chasse20 f17e524776 Fix path undo repaint and restore Apply 2026-11-10 21:07:57 -05:00
chasse20 0886db98f8 Fix moved fill copies on curved surfaces 2026-11-10 20:49:34 -05:00
chasse20 2f2ba103be Fix non-Linux path benchmark imports 2026-11-10 20:39:32 -05:00
chasse20 6ec769feca Merge main and fix path preview issues 2026-11-10 20:31:49 -05:00
chasse20 ca08fb7c3d Merge main and fix symmetry review issues 2026-11-10 20:22:40 -05:00
chasse20 77a03ddcb3 Merge main and fix decal placement and input handling 2026-11-10 18:29:43 -05:00
Chris Hassebrook d664dc239c Revert "Show a whole material at once: coarse first look, then the exact result" 2026-11-10 16:08:27 -05:00
Chris Hassebrook 783cbdcb27 Merge pull request #381 from SteamSmith/perf/material-loading
Show a whole material at once: coarse first look, then the exact result
2026-11-10 16:07:09 -05:00
FredApps 4a3e5c41b4 Return test setup errors before assertions 2026-11-10 20:44:42 +01:00
FredApps 26ddc8c256 Merge main and keep nested thumbnail controls accessible 2026-11-10 20:10:52 +01:00
chasse20 7de078d8d9 Merge main and tidy mask-value shortcut tests 2026-11-10 07:15:02 -05:00
SteamSmithandClaude Sonnet 5.5 208c645d0c Show a whole material at once: coarse first look, then the exact result
Applying a material filled the model in tile by tile, and each apply made the
next one slower. Now:
- a big recomposite first draws a coarse look of every tile (sampled texels
  repeated across blocks), then refines to the exact result;
- layers hidden behind an opaque layer are skipped (not when anchors or height
  masks are involved);
- compositing and upload budgets adapt: larger when idle, smaller while the
  user is interacting, and uploads reserve time for conversion;
- no coarse pass during a live stroke or with neighbourhood filters;
- blending at full weight returns the blended value exactly.

Tests: coarse-then-exact, hidden-layer culling gives identical pixels, coarse
pass covers every tile, no coarse pass while a stroke is live.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 06:40:11 -05:00
chasse20 2d0b8e6a48 Fix thumbnail previews and cache retention 2026-11-10 06:37:12 -05:00
chasse20 368731f7a4 Fix Clippy checks and clean up affected functions 2026-11-10 05:33:20 -05:00
chasse20 a5f09109ea Merge main into PR 234 2026-11-10 05:33:20 -05:00
FredApps 7c440b1e3e Retain unchecked maps once per streamed bake 2026-11-10 09:39:28 +01:00
FredApps 3fc540e570 Test retained-map allocations in streamed partial bakes 2026-11-10 09:31:14 +01:00
chasse20 3496930a87 Cancel active strokes when bake preview starts 2026-11-10 02:29:37 -05:00
chasse20 7e2b3c7e6a Move bake preview setup into the engine 2026-11-10 01:58:43 -05:00
chasse20 832a7f9e89 Fix live bake preview review findings 2026-11-10 01:34:02 -05:00
vangel76andClaude Opus 5.5 254ee16b04 Merge upstream/main into fix/217-generator-offset
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 23:26:53 +01:00
MistyMystery 424ab64ce8 Merge upstream main into layers-panel-redesign 2026-11-09 23:54:51 +04:00
MistyMystery 0c1f66d1f5 Live bake preview: update for the bake refactor, share streamed map buffers, narrow the cancel guarantee
Merge upstream main into the branch. The streamed bake now returns the same Arc buffers it handed to the preview, and the document stores those, so a preview never holds a second copy of a map. A cancel leaves the set being baked as it was; sets that finished earlier stay applied.
2026-11-09 19:49:07 +04:00
dotCooCoo 7f52b87b85 UI: use the shared craft-libs crates for dialogs, shortcuts and quit
Bumps craft-ui and craft-window to craft-libs 1b34eba4 and replaces the
app's own dialog, shortcut and quit code with the shared crates.

File dialogs go through craft-dialogs and no longer stop the frame. An
action that needs a path asks for it and continues when the dialog
answers. An answer that acts on the project does nothing, with a toast,
when another project was opened meanwhile. The browser build keeps its
pickers and the startup and crash message boxes stay blocking.

Shortcuts run through craft-keymap's dispatcher, in the main window and
in floating panels. Saved shortcuts keep their stored form, and the
Keyboard shortcuts window and the shortcut labels do not change. A
shortcut on a symbol that needs Shift is recorded without Shift, and
saved shortcuts in the old form still run. A shortcut now runs only on
its exact chord: an extra Shift or Alt no longer runs a plain-key
shortcut.

A window close quits through craft-quit, and the close check runs in
logic, so closing a minimized window with unsaved changes restores it and
asks. A close during a stroke finishes the stroke and asks. The macOS app
menu comes from craft-menu. The unsaved-changes prompt goes on once its
Save dialog has saved the project, and stays open after Cancel or a failed
save.

The window frame guard on Windows and the title bar's buttons stay in the
app, since craft-libs has no code for them.
2026-11-08 22:07:12 -08:00
SteamSmithandClaude Sonnet 5.5 e5f76eb310 fix: never read the remembered mesh path implicitly
A project file could set mesh_path to any host file, and automation allows a
file.reimportMesh without a path, so that command would have read it without
workspace authorization. A command without a path now always uses the
project's own copy again. The desktop UI passes the remembered path itself
(Session::remembered_mesh_path, one rule for "remembered and still there"),
and asks for a file when there is none. Also moves the misplaced doc comment
on read_mesh and documents the touched functions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 23:24:24 -05:00
SteamSmithandClaude Sonnet 5.5 d8d4140e11 fix: Reimport mesh reads the mesh file again from disk
Reimport mesh re-read the project's own stored copy of the mesh when it had
one, so saving a change to the mesh file and reimporting did nothing. The
project now remembers the path the mesh was imported from (mesh_path, the
spec's "3D mesh path") and Reimport reads that file again. When the file is
gone the menu asks for one, and a command without a path still falls back to
the stored copy. Projects saved before this have no path and ask once.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 23:11:37 -05:00
chasse20 c573250601 Merge latest main into baked map import
Preserve both module and translation additions. Register the baked map tests in the consolidated integration suites.
2026-11-08 21:42:24 -05:00
chasse20 12eb4a45da Merge main and resolve color selection UI conflict 2026-11-08 20:25:00 -05:00
chasse20 4ed0d49a1c Move bake preview classification into the engine
Share visualization settings between scene shading and GPU sync, and use then_some for the conditional low-poly pass. Cover per-set distances, selected-set filtering, missing inputs and ownership with engine tests.
2026-11-08 19:13:06 -05:00
chasse20 74c68e005a Merge main and resolve translation conflicts 2026-11-08 18:55:48 -05:00
FredAppsandFredApps 4be75a2b11 test: bound hostile-input bake fixture to project resolution (#356)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-08 12:55:22 +01:00
vangel76andClaude Opus 5.5 df86375a16 Merge upstream/main into fix/clippy-chunks-exact-to-as-chunks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:18:59 +01:00
FredAppsandFredApps 117bfd5c1d ci: reduce integration test executables and skip unused tool install (#355)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-08 11:34:56 +01:00
vangel76andClaude Opus 5.5 0db6a0c0bb Merge upstream/main into fix/179-2d-brush-cursor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:17:40 +01:00
vangel76andClaude Opus 5.5 8a800d32a1 Merge upstream/main into fix/217-generator-offset
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:17:27 +01:00
Chris Hassebrook 9aebba686b Fix color selection picking and inspection 2026-11-08 09:13:46 +00:00
Rebornim 433ae07387 Add color selection editor and ID map picking
Properties gets tolerance, a Colors list (swatch, R/G/B, re-pick, remove)
and a Pick color mode: the pointer becomes an eyedropper, both views show
the ID mesh map and the next click adds the ID color under it.
effect.set takes colors; effect.colorSelection.pick samples the texel the
mask evaluates and skips hidden texture sets.
2026-11-08 09:13:46 +00:00
Chris Hassebrook be989fba6f Harden baked map imports and fix TGA decoding 2026-11-08 08:58:07 +00:00
Chris Hassebrook 8e9ffe24ba Merge main and resolve UV stroke conflicts 2026-11-08 08:47:14 +00:00