Commit Graph
578 Commits
Author SHA1 Message Date
chasse20 6ec769feca Merge main and fix path preview issues 2026-11-10 20:31:49 -05:00
Chris Hassebrook c00735cb7f Merge pull request #312 from Rebornim/fix/decal-other-set
Drop a shelf image on the texture set under the cursor, as a channel or a mask
2026-11-10 19:20:28 -05:00
Chris Hassebrook 4362017922 Merge pull request #342 from Rebornim/feat/levels-editor
Levels: edit the input range, gamma and output range on the histogram
2026-11-10 19:10:40 -05:00
chasse20 bf76e5f852 Reject stale decal effect frames 2026-11-10 18:59:18 -05:00
Dylan M. Taylor 21b3046648 packaging: use [[ for bash tests (SonarCloud S7688) (#403)
* packaging: use [[ for bash tests (SonarCloud S7688)

Behaviour-preserving: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`. `bash -n` passes on each script; the rest is left to CI.

Clears all 70 open issues: `packaging/{linux,macos,freebsd,web}/*.sh`.

* packaging/web: parse the wasm size override as base 10 under [[

Inside [[ ]], -gt evaluates its operands arithmetically: a leading zero reads as octal and other text as an expression. Read the override as a base-10 number, as photocraft does.
2026-11-10 18:58:27 -05:00
chasse20 89e52133a4 Merge latest main into Levels editor 2026-11-10 18:54:31 -05:00
chasse20 00f3cb4583 Fix Levels editing, accessibility and state cleanup 2026-11-10 18:49:41 -05:00
Chris Hassebrook 85ca306ffb Merge pull request #331 from Rebornim/feat/section-reset
Reset icon on each brush section header
2026-11-10 18:45:30 -05:00
chasse20 77a03ddcb3 Merge main and fix decal placement and input handling 2026-11-10 18:29:43 -05:00
chasse20 8a94f07185 Merge main and fix brush reset layout and focus 2026-11-10 18:28:55 -05:00
Chris Hassebrook a6389f8e11 Merge pull request #392 from storytold/revert-381-perf/material-loading
Revert "Show a whole material at once: coarse first look, then the exact result"
2026-11-10 16:08:57 -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 8083ca08a5 Merge pull request #264 from Aalzard/layers-panel-redesign
Layers panel: live thumbnails and a clearer row layout
2026-11-10 21:23:02 +01: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
FredApps b855e542fb Merge pull request #378 from storytold/sonar/appimagetool-https
packaging(linux): refuse non-HTTPS redirects when fetching appimagetool
2026-11-10 18:43:35 +01:00
FredApps fd7baa02b7 Merge branch 'main' into sonar/appimagetool-https 2026-11-10 18:23:44 +01:00
Chris Hassebrook 24062ad6c0 Merge pull request #335 from Rebornim/feat/x-swap-mask-value
X inverts the mask paint value
2026-11-10 10:46:36 -05:00
FredApps 9de96cfee4 FreeBSD CI: run the GPU crates' tests one at a time (#379)
* FreeBSD CI: run the GPU crates' tests one at a time

The FreeBSD VM's software Vulkan driver crashes (SIGSEGV) when several tests create a wgpu device at once. texturecraft-render's lib and headless tests, and earlier texturecraft-automation's, died this way in every FreeBSD run since Nov 6, with no render or dependency change. photocraft already serializes its GPU tests for the same reason; do the same for the crates that open a device.

* FreeBSD CI: test the whole workspace one test at a time

Excluding the GPU crates from the parallel run changed feature unification, and winit then built without its X11/Wayland backends (compile_error on FreeBSD). Run the whole workspace in one cargo test with --test-threads=1 instead.
2026-11-10 14:30:38 +01:00
chasse20 a7236149cb Merge main and fix brush reset accessibility 2026-11-10 07:44:04 -05: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
Chris Hassebrook 1de6bb21c3 Merge pull request #234 from vangel76/fix/clippy-chunks-exact-to-as-chunks
Fix the Rust 1.99 clippy findings
2026-11-10 05:54: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 7538889494 packaging(linux): refuse non-HTTPS redirects when fetching appimagetool 2026-11-10 11:12:49 +01: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
Chris Hassebrook dca182b160 Merge pull request #377 from storytold/376-improve-pr-guidelines-doc-to-better-defend-against-memory-leakage
Updated helpful PR guide to be more defense against memory leakages
2026-11-10 03:45:43 -05:00
chasse20 65a00a31f9 Updated helpful PR guide to be more defense against memory leakages 2026-11-10 03:44:52 -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
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 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