Commit Graph
524 Commits
Author SHA1 Message Date
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
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 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
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 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
vangel76andClaude Opus 5.5 07e94e1c86 Merge upstream/main into fix/217-generator-offset
Keep the curvature mode and detail sizes from upstream and route the
finished generator value through Generator::shape so the offset applies
to every generator kind. A non-finite offset now counts as 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:18:34 +01:00
Chris Hassebrook c6edc30a5b Merge pull request #315 from Rebornim/feat/curvature-bands
Curvature generators: mode and detail sizes
2026-11-08 03:12:20 -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
vangel76andClaude Opus 5.5 6c3e2f9625 Merge upstream/main into fix/217-generator-offset
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 08:17:31 +01:00
Chris Hassebrook c46e9b3f3c Merge pull request #308 from Rebornim/feat/filter-picker
Filter picker: swap a filter's type from its Properties slot
2026-11-08 02:07:24 -05:00
Chris Hassebrook b966d13da2 Fix filter picker visibility and swap error context 2026-11-08 01:42:22 -05:00
Chris Hassebrook 57bdfa483a Merge pull request #350 from storytold/349-clean-up-pr-review-guidelines-helper
Updated the PR review helper to be even more helpful
2026-11-08 00:05:52 -05:00
chasse20 97d4bbc38a Updated the PR review helper to be even more helpful 2026-11-07 23:46:15 -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