Commit Graph
413 Commits
Author SHA1 Message Date
chasse20 7de078d8d9 Merge main and tidy mask-value shortcut tests 2026-11-10 07:15:02 -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 c54f3fdf0c Merge pull request #270 from Aalzard/live-bake-preview
Live bake preview: each mesh map shows on the model as it finishes
2026-11-10 10:22:44 +01: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
Chris Hassebrook 54576658c1 Merge pull request #346 from Rebornim/fix/panel-tidy
Tidy the Shader, Display, History and Log panels
2026-11-10 02:46:28 -05:00
chasse20 6cdc7789cb End ID color picking before bake preview 2026-11-10 02:41:08 -05: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
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 de41770d57 Window: name the default and minimum window sizes, and canceling Import Images leaves the panels alone 2026-11-08 22:25:44 -08: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
Chris Hassebrook db04b05e81 Merge pull request #366 from SteamSmith/fix/reimport-from-disk
Reimport mesh reads the mesh file again from disk
2026-11-09 00:17:21 -05:00
dotCooCoo c8ed91f6b3 Updates: Help > Check for Updates and a check at start
TextureCraft is updated only through the launcher, so a copy downloaded
directly is never told about a new version. The desktop app now checks
GitHub releases at start and from Help > Check for Updates, through
craft-update at craft-libs 1b34eba4. A run with --control skips the check
at start. A ready update installs when the app closes, and it waits for
unsaved changes, a stroke, a bake or a resize. The update prompt and the
modal result window hold the keyboard, so shortcuts do not act on the
project behind them. The web build is unchanged.
2026-11-08 20:32:44 -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 3a5c90ad82 Merge main and resolve UI persistence conflicts 2026-11-08 19:53:38 -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
Chris Hassebrook 7b5cccf1af Fix bake preview safety, seams and visibility 2026-11-08 18:49:05 -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
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 933720e907 Preserve UI settings when persistence fails 2026-11-08 08:58:03 +00:00
Rebornim b2be7c32db Keep every saved state that cannot be read, and save only states that read back 2026-11-08 08:58:03 +00:00
Rebornim a3f7fbc741 Panel layouts survive a restart
The UI state was saved as RON through eframe's storage, and a dock read
through a JSON value lost RON's enum variant names, so every saved layout
loaded as the default. The UI state is now saved as JSON in a store of
its own: ui.json beside eframe's settings on the desktop, a storage key on
the web. A saved state this build cannot fully read is kept beside it
before the next save, and the state earlier builds saved still loads.
2026-11-08 08:58:03 +00:00
Chris Hassebrook 8e9ffe24ba Merge main and resolve UV stroke conflicts 2026-11-08 08:47:14 +00:00
Chris Hassebrook 13b2e77e76 Fix UV stroke anchors and pressure handling 2026-11-08 03:43:07 -05:00
Chris Hassebrook 8ad3803746 Merge pull request #301 from Rebornim/feat/smart-material-orb-previews
Smart material previews on the preview orb
2026-11-08 03:37:09 -05:00
Chris Hassebrook 05f3d1817a Fix texture cleanup in preview worker test 2026-11-08 03:20:28 -05:00
Chris Hassebrook e729def8da Merge main and resolve translation conflicts 2026-11-08 07:59:02 +00:00
Chris Hassebrook b177ecc912 Merge pull request #323 from Rebornim/feat/polygon-fill-parity
Polygon fill: box selection, polygon mode, hit-test, visible polygons only and the 2D view
2026-11-08 02:49:29 -05:00
Chris Hassebrook 52d0579bb4 Fix web preview repaint scheduling 2026-11-08 02:47:55 -05:00
Chris Hassebrook e8145421c3 Fix curvature detail handling and merge main 2026-11-08 07:31:13 +00:00
Chris Hassebrook c87247c6d3 Fix polygon fill drag state and visibility 2026-11-08 02:23:39 -05:00
Chris Hassebrook b966d13da2 Fix filter picker visibility and swap error context 2026-11-08 01:42:22 -05:00
Rebornim cbe3c86acb Curvature detail: full-strength block borders, neutral raw curvature, stricter sizes
Divide each blurred detail size by the share of the blur window inside its
UV tile block, so texels near a block or map edge keep their strength
instead of fading toward zero. Raw mode reads mid gray when there is no
curvature to sample. The size cache keeps one layout per curvature map.
Mask previews of hidden layers build their sizes once before the tiles run
in parallel. effect.set rejects a sizes array with a non-numeric entry.
2026-11-08 01:38:20 +00:00
vangel76andClaude Opus 5.5 aecf9cd7ab Use as_chunks in the bake_tiles tests main added
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 02:29:28 +01:00
Rebornim 8cdd5dc296 Filter slot: use Id::unique for the open request (Id::new is deprecated) 2026-11-08 01:28:25 +00:00
Rebornim dd7bb51bd5 Bake visualization: pick up the reach even when nothing is drawn
The reach job was only polled while the high poly was drawn, so leaving
bake mode or hiding the high poly mid-reach kept busy() true and the view
repainting every frame. Poll it at the start of every sync.

The resend test now waits for the rebuilt cage's reach before checking
that a resend starts none, so it no longer depends on thread timing.
2026-11-08 01:27:58 +00:00
vangel76 d8ecfb7d42 Merge upstream/main into fix/clippy-chunks-exact-to-as-chunks 2026-11-08 02:27:35 +01:00
Rebornim 284cb7d125 Refuse host paths in files entries for automation
textureSet.meshMap.import takes its paths in files[].path, which
authorize_command did not look at, so a control client could import an
image from outside --read-root. Treat a path or dir in any files entry
like a top-level one, and document that automation imports baked maps
through resource_import plus textureSet.meshMap.set.
2026-11-08 01:25:35 +00:00
Rebornim c39d95b4c8 Filter swap: test that invalid parameters for the new filter are refused 2026-11-08 01:21:42 +00:00