Commit Graph
776 Commits
Author SHA1 Message Date
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
vangel76 2b98204931 Merge remote-tracking branch 'origin/perf/parallel-project-save' into pr218-merge 2026-11-10 00:28:01 +01:00
vangel76 0ecfa244af amend 2026-11-10 00:20:01 +01:00
vangel76andClaude Sonnet 5.5 0ca220ed2d Merge branch 'perf/parallel-project-save' into fix/save-over-load-limit; no size limit on opening a project
The 8 GiB MAX_TOTAL guard on open and the save-side check are removed (maintainer
decision). The per-resource and mesh limits stay.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:14:07 +01:00
vangel76andClaude Sonnet 5.5 1a795584f1 perf(formats): cores kept for the UI and a RAM share for project saves are settings
The worker cap of 8 and the fixed 3 GiB in-flight budget are gone. Prefs gets
'cores kept for the UI' (default 1, 0 or more) and 'max RAM while saving'
(default 50% of the free RAM).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:06:01 +01: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
Dylan M. Taylor f5e41e759f docs: add SonarCloud badge to README (#371) 2026-11-09 10:09:43 -05:00
Chris Hassebrook 85729f1fae Merge pull request #368 from dotCooCoo/feat/shared-ui-crates
UI: use the shared craft-libs crates for dialogs, shortcuts and quit
2026-11-09 01:48:44 -05: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
Dylan M. Taylor b09d51fd7e Merge pull request #367 from dotCooCoo/feat/self-updater
Updates: Help > Check for Updates and a check at start
2026-11-09 00:00:59 -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
Chris Hassebrook b9ace8c7bc Merge pull request #328 from Rebornim/feat/import-baked-maps
Import baked maps when creating a project
2026-11-08 22:16:46 -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
Chris Hassebrook 010db5957f Merge pull request #314 from Rebornim/feat/color-selection-editor
Color selection editor: edit the ID colors, pick them from the ID map
2026-11-08 20:45:25 -05:00
chasse20 2898a26d46 Reconcile PR history with validated merge resolution 2026-11-08 20:27:28 -05:00
chasse20 12eb4a45da Merge main and resolve color selection UI conflict 2026-11-08 20:25:00 -05:00
Chris Hassebrook c1b358f9cc Merge pull request #309 from Rebornim/fix/layout-persistence
Panel layouts survive a restart
2026-11-08 20:12:58 -05:00
chasse20 5c842b9fd5 Reconcile PR history with validated merge resolution 2026-11-08 19:55:22 -05:00
chasse20 3a5c90ad82 Merge main and resolve UI persistence conflicts 2026-11-08 19:53:38 -05:00
Chris Hassebrook 796498b86f Merge pull request #343 from Rebornim/feat/bake-visualization
Bake mode: draw the high poly, the cage and where the bake's rays miss
2026-11-08 19:37:07 -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
Rebornim e7e43047f3 Rail tests: check the popup on screen, not the rail_panel field 2026-11-08 21:44:51 +00:00
Rebornim a3d9b719c5 Open the rail's panels in a popup beside their icon, one at a time
A click on a rail icon (Texture Set Settings, Display, Shader Settings,
History) opened the panel as a separate floating window near the middle
of the main window, and the Log had no icon. The rail now has a Log icon,
and each of these panels opens in a popup beside its icon, level with it,
in the menus' frame with an accent outline. The popup covers the panels
between the viewport and the rail and reaches a little into the viewport.
Settings panels fit their contents up to a height; History and Log take
one height. Opening another closes it, and so do its icon, its close
button, a press outside it and Escape. Dragging its title docks or
floats the panel like a tab. A panel in the dock, docked or floating,
has no rail icon until it is closed there. Window > Views opens these
panels the same way.
2026-11-08 21:44:51 +00:00
Rebornim c5d1e02f85 Color selection editor: edit the ID colors, pick them from the ID map
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 21:35:06 +00: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
Chris Hassebrook 3f3c01773a Merge pull request #318 from Rebornim/feat/shift-lines-2d
Shift+click straight lines in the 2D view
2026-11-08 04:25:31 -05: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 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