Commit Graph
376 Commits
Author SHA1 Message Date
SteamSmithandClaude Sonnet 5.5 7b4124b6c0 fix(cook): catch panics in the cook worker and in app and control commands
A panic in the background cook left stale previews with no error, and a
dead worker (Disconnected) was cleared silently. The worker now runs under
catch_unwind and reports failure; the failure and a vanished worker mark
every node with the error and raise a toast. App::run and the control
channel's command.run also run commands under catch_unwind and reply with
an error instead of crashing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:00:31 -05:00
SteamSmithandClaude Sonnet 5.5 ee903c96ad fix(formats): choose sRGB or linear when reading bitmaps
decode() sRGB-decoded every 8/16-bit color bitmap, so an RGB normal map
(0.5, 0.5, 1) became (0.214, 0.214, 1). decode now takes a linear flag. The
Bitmap node gets a Color space choice (sRGB by default, so existing files cook
the same) and graph input preview images can be bound as linear data maps
(graph.input.bind linear: true, stored in input_images_linear).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:58:19 -05:00
SteamSmithandClaude Sonnet 5.5 858dde47a1 fix(cook): drop a stale background cook that a newer sync cook superseded
A background cook of version A could land after session.inspect had
synchronously cooked version B and cleared dirty, overwriting B's results
with no recook. Sessions now count synchronous cooks (cook_epoch) and the
cooker discards a result whose start epoch is out of date.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:57:43 -05:00
SteamSmithandClaude Sonnet 5.5 4e21afda5f fix(nodes): cap the bin span in Splatter and Scratches
The grid-bin span was unbounded, so a large size or length visited billions of
bins per item, and Splatter also scanned each bin with contains. Cap the span
to one turn of bins per axis (as fx_map does), drop the contains scan, and
clamp Splatter's count to its declared maximum of 2000.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:57:14 -05:00
SteamSmithandClaude Sonnet 5.5 0546dd58c6 fix(engine): end undo merge runs at gesture and request boundaries
merge_key was cleared only by edit/undo/redo/reset_history, so two drags
of one slider, two "New random seed" clicks and two MCP/control
node_param calls collapsed into one undo entry. Add Session::end_merge,
call it on pointer release and around each control/MCP command, and
restore the session when a merged edit fails.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:57:14 -05:00
SteamSmithandClaude Sonnet 5.5 7cbdce8e63 fix(nodes): bound the anisotropic blur's horizontal pass
blur_xy made ceil(extra/2) full-image passes with an unclamped sigma, so a
large intensity at high resolution took ~1e11 ops and a hostile one never
ended. Clamp both sigmas to the image size and do the extra horizontal blur
as one Gaussian (new ops::gaussian_h, three box passes, O(1) per pixel).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:51:38 -05:00
SteamSmithandClaude Sonnet 5.5 7beb8252ed fix(formats): cap and share package resource reads, error on missing entries, dedupe saved names
load_package read a resource entry once per resource that named it, so a tiny
deflated entry plus thousands of resources could allocate hundreds of GB. Each
distinct entry is now read once and shared, the resource count and total bytes
are capped, and a missing or over-cap entry is an error instead of silently
empty data. save_package gives colliding sanitized file names a numeric suffix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:50:39 -05:00
SteamSmithandClaude Sonnet 5.5 26fd0a8b03 fix(control): random owner-only token file, constant-time compare, close on failed auth
The desktop control server had its own token code (hashed RandomState, default-permission
file in the shared temp dir, plain ==, unlimited guesses on one connection). It now uses the
automation crate's server_token and token_matches, which the CLI already used.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:39:40 -05:00
SteamSmithandClaude Sonnet 5.5 d428d41c87 fix(nodes): Normal Blend no longer returns NaN for a base normal with z = -1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:39:23 -05:00
SteamSmithandClaude Sonnet 5.5 7b87236f26 fix(eval): hash nested instanced graphs and whole resource bytes into the cache key
Editing a graph two levels below an instance node left the instance's cached result stale, and
bitmaps of equal length with equal headers shared a cache key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:39:23 -05:00
SteamSmithandClaude Sonnet 5.5 a6c7fd46f2 fix(review): keep the open graph open after deleting an earlier one; clamp huge sample coordinates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:39:22 -05:00
FredApps 91bb53f07a Merge pull request #38 from test-bit-sys/feat/arabic-localization
feat(i18n): add complete Arabic (ar) UI localization and font fallbacks
2026-11-05 04:38:43 +01:00
FredApps 4ce6d19362 ui-egui: rustfmt the Arabic catalog; enable web-sys Navigator for the browser language 2026-11-05 04:25:17 +01:00
Rafael Mendes 4461d0ce5b Avoid logging SBS XML in expression test failures 2026-11-05 00:21:35 -03:00
FredApps 8b72a7c0b9 Merge remote-tracking branch 'origin/main' into fix38 2026-11-05 04:14:55 +01:00
Rafael Mendes 821c7172b5 Add DirectX normal-map interpretation to the 3D view 2026-11-05 00:04:50 -03:00
Rafael Mendes 91175aafc6 Import numeric SBS parameter expressions 2026-11-04 23:36:54 -03:00
Rafael Mendes dce9f30c5a Add base-two and Cartesian function primitives 2026-11-04 23:25:13 -03:00
Dylan M. Taylor e6c2925aa7 Merge main into release 2026-11-04 21:12:42 -05:00
Dylan M. Taylor 2c92a5c41f Merge main into release 2026-11-04 21:07:37 -05:00
Rafael Mendes 4c7aeabb74 Expose 4K editing previews in the material views 2026-11-04 23:05:25 -03:00
Belligerently ed9f2d0fac Make the full node-search result row clickable 2026-11-04 21:04:56 -05:00
Belligerently b0e8b14017 Reveal node search selection after query changes and reopening 2026-11-04 20:57:57 -05:00
PiJellyPin 8bdae1157d Fixed Heightmap 2026-11-05 02:38:04 +01:00
Belligerently 96db0b01f9 Preserve Flood Fill and Height Blend SBS inputs 2026-11-04 20:30:54 -05:00
Belligerently f421d10b3f Recognize Histogram Scan and Auto Levels SBS aliases 2026-11-04 20:18:15 -05:00
Belligerently ff310018ef Make round parameter values reachable by dragging 2026-11-04 19:56:16 -05:00
Dylan M. Taylor 1639314ca5 Revert the release environment on the workflow call v0.1.2 2026-11-04 19:39:19 -05:00
Dylan M. Taylor 42b0bfe4f3 Run the signed release from the release environment 2026-11-04 19:36:10 -05:00
Belligerently 9b51c35dd7 Keep keyboard-selected node search results visible 2026-11-04 19:14:56 -05:00
Rafael Mendes 698ea23380 Merge pull request #37 from storytold/feat/levels-histogram
Levels: histogram editor with range handles
2026-11-04 20:51:30 -03:00
Rafael Mendes e9f7547db6 Merge remote-tracking branch 'origin/main' into feat/levels-histogram 2026-11-04 20:39:28 -03:00
Dylan M. Taylor 2939420ef3 Update the lock file for MaterialCraft 0.1.2 2026-11-04 18:38:48 -05:00
Dylan M. Taylor da89acba22 Release MaterialCraft 0.1.2 2026-11-04 18:38:42 -05:00
Dylan M. Taylor 62bf83cf6b Fix the MaterialCraft 0.1.2 lock file 2026-11-04 18:34:24 -05:00
Dylan M. Taylor 45a5eee59a Fix the MaterialCraft 0.1.2 lock file 2026-11-04 18:34:09 -05:00
Rafael Mendes e409950dce Merge pull request #36 from storytold/feat/alpha-3d-and-wire-editing
Alpha in the 3D view; select, delete, swap and reroute wires
2026-11-04 20:31:22 -03:00
Dylan M. Taylor 36d20fc194 Restore Cargo.lock for the MaterialCraft 0.1.2 release 2026-11-04 18:29:39 -05:00
Dylan M. Taylor 31b13349e6 Release MaterialCraft 0.1.2 2026-11-04 18:22:06 -05:00
Rafael Mendes 2900eb1058 Merge branch 'feat/alpha-3d-and-wire-editing' into feat/levels-histogram
# Conflicts:
#	crates/ui-egui/tests/snapshot.rs
2026-11-04 20:14:36 -03:00
Rafael Mendes 6a249c66ff Merge remote-tracking branch 'origin/main' into feat/alpha-3d-and-wire-editing
# Conflicts:
#	README.md
2026-11-04 20:11:35 -03:00
jayzed80andClaude Opus bdfc3daabd cli: accept --automation-read-root / --automation-write-root (#55)
materialcraft-cli mcp and serve now take the --automation-*-root spelling
the other crafting apps use, as aliases of --read-root / --write-root. The
parser stores them under the short names, so the last root given wins
whichever spelling it used. Adds unit tests and a note in the protocol doc.

Fixes #55

Co-Authored-By: Claude Opus <noreply@anthropic.com>
2026-11-04 21:58:48 +00:00
AndreIsraelAO 3947e3c6f5 Merge main into feat/22-graph-context-export 2026-11-04 17:53:40 -03:00
Belligerently 4c33630376 Clarify node resolution while previewing 2026-11-04 13:13:08 -05:00
Dylan M. Taylor 57c06be62a Release MaterialCraft 0.1.1 v0.1.1 2026-11-04 12:34:09 -05:00
Dylan M. Taylor ddb78274f9 Honor release version in packaging 2026-11-04 12:30:01 -05:00
Dylan M. Taylor 4e8bb9ca9a ci: add SonarCloud analysis 2026-11-04 09:47:53 -05:00
Belligerently 1eaa87a3ed Apply interface scale after pointer release 2026-11-04 08:43:44 -05:00
GrosFineasssandClaude Opus 5.5 d4492ac255 Connect a wire dragged from an unconnected input
Pressing an unconnected input started no gesture, so a wire could only
be pulled from an output. It now starts a wire that ends on an output
and runs the same graph.connect. Dropping it anywhere else changes
nothing. Dragging from an output and unplugging a connected input work
as before.

Refs #13

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 15:32:30 +02:00
smittie2000andClaude Opus 5.5 5a7fe7b6b6 start_failure: an app start-up error doesn't blame the graphics
From CodeRabbit: an error from the app creator (AppCreation, e.g. a --control
file it can't write) comes after the window and renderer started, so "update
the graphics driver" doesn't apply. It now says only that the app couldn't
start; other errors keep the window/graphics text. Tested both ways (the
new test fails with the AppCreation arm disabled).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:17:30 +02:00