Commit Graph
376 Commits
Author SHA1 Message Date
Rafael Mendes c531406573 Merge branch 'fix/12-preview-resolution' of https://github.com/storytold/materialcraft into review/pr-66 2026-11-05 12:26:17 -03:00
Rafael Mendes 6b6f8728c2 Bound relief workers and integrate real height previews 2026-11-05 12:25:44 -03:00
Rafael Mendes ccb68a13f4 Merge pull request #64 from Belligerently/fix/sbs-library-node-aliases
Recognize reported SBS aliases for four library nodes
2026-11-05 12:20:32 -03:00
Rafael Mendes be02ec236c Merge branch 'fix/sbs-library-node-aliases' of https://github.com/Belligerently/materialcraft into review/pr-64 2026-11-05 12:19:28 -03:00
Rafael Mendes a005d19ab3 Merge pull request #63 from Belligerently/fix/slider-round-values
Make round parameter values reachable by dragging
2026-11-05 12:18:34 -03:00
Rafael Mendes 3359d48f2d Merge branch 'fix/slider-round-values' of https://github.com/Belligerently/materialcraft into review/pr-63 2026-11-05 12:16:43 -03:00
Rafael Mendes 9a4ab99206 Merge pull request #62 from Belligerently/fix/search-results-keyboard-limit
Keep keyboard-selected node search results visible
2026-11-05 12:16:32 -03:00
Rafael Mendes 994dffca6d Merge branch 'fix/search-results-keyboard-limit' of https://github.com/Belligerently/materialcraft into review/pr-62 2026-11-05 12:14:45 -03:00
Rafael Mendes 042a7749b1 Merge pull request #61 from jayzed80/fix/automation-root-aliases-55
cli: accept --automation-read-root / --automation-write-root in mcp and serve
2026-11-05 12:14:39 -03:00
Rafael Mendes b426aa1d52 Merge branch 'fix/automation-root-aliases-55' of https://github.com/jayzed80/materialcraft into review/pr-61 2026-11-05 12:13:37 -03:00
Rafael Mendes 8afdbf5183 Merge pull request #56 from Belligerently/fix/preview-resolution-label
Clarify node resolution while previewing
2026-11-05 12:13:11 -03:00
Rafael Mendes d3f3e2aefa Merge branch 'fix/preview-resolution-label' of https://github.com/Belligerently/materialcraft into review/pr-56 2026-11-05 12:11:18 -03:00
Rafael Mendes e20bd734d3 Merge pull request #54 from Belligerently/fix/stable-interface-scale
Apply interface scale after pointer release
2026-11-05 12:07:09 -03:00
Rafael Mendes b90cc38f9a Merge pull request #53 from GrosFineasss/fix/drag-wire-from-input
Connect a wire dragged from an unconnected input
2026-11-05 12:05:43 -03:00
Rafael Mendes 442bb0cf83 Merge branch 'fix/stable-interface-scale' of https://github.com/Belligerently/materialcraft into review/pr-54 2026-11-05 12:05:13 -03:00
Rafael Mendes aa6e7138d9 Integrate reverse wire dragging with node and wire selection 2026-11-05 12:04:51 -03:00
Rafael Mendes a5f298299d Merge pull request #50 from smittie2000/fix/no-desktop-start
fix(windows): a window that can't start says why instead of the app exiting silently
2026-11-05 12:01:47 -03:00
Rafael Mendes cfe0c716ac Merge pull request #45 from A-Gift-Of-Flame/feat/mcp-material-export
MCP material_export tool: sandboxed agents can export portable .mcmat materials
2026-11-05 12:00:32 -03:00
Rafael Mendes 4f8b946f68 Merge branch 'fix/no-desktop-start' of https://github.com/smittie2000/materialcraft into review/pr-50 2026-11-05 11:36:10 -03:00
Rafael Mendes 96574eaba7 Integrate MCP material export with the current control protocol 2026-11-05 11:35:48 -03:00
Rafael Mendes b34eb64235 Merge pull request #44 from simonhull/perf/cook-only-what-changed
Cook only the nodes an input change reaches; cancel stale cooks
2026-11-05 11:35:43 -03:00
Rafael Mendes c987aaa3fa Merge pull request #43 from simonhull/fix/correct-cache-keys
Eval: key resources on content and graph instances on their whole sub-graph tree
2026-11-05 11:22:32 -03:00
Rafael Mendes 84436943e8 Coalesce pending edits while a cancelled cook finishes 2026-11-05 11:22:04 -03:00
Rafael Mendes 4897dab15d Merge branch 'review/pr-43' into review/pr-44 2026-11-05 11:16:47 -03:00
Rafael Mendes 2e525e1738 Reconcile the author's SBS resource update 2026-11-05 11:14:31 -03:00
Simon Hull 2f0533cf28 Eval: give the clamping test a locked cache 2026-11-05 08:07:53 -06:00
Rafael Mendes 8a9d7673bb Merge pull request #42 from simonhull/fix/harden-control-token
Control channel: harden the token file and the app's control server
2026-11-05 11:02:51 -03:00
Rafael Mendes a026ddaaf9 Integrate cache keys with SBS and bound graph traversal 2026-11-05 11:02:15 -03:00
Simon Hull e39a227ca1 Merge commit 'e153b8b' into advisor/005-cook-only-what-changed 2026-11-05 07:52:55 -06:00
Simon Hull e153b8b603 Merge remote-tracking branch 'origin/main' into advisor/004-correct-cache-keys 2026-11-05 07:52:44 -06:00
Rafael Mendes 56aaea24ae Use the bound control port and handle thread creation failures 2026-11-05 10:50:37 -03:00
Rafael Mendes f5b3fe73de Merge remote-tracking branch 'origin/main' into review/pr-42 2026-11-05 10:37:52 -03:00
Rafael Mendes c2677734a9 Merge pull request #41 from simonhull/fix/package-load-budget
Formats: bound package load memory, check image size before decoding, guard parsers
2026-11-05 10:37:25 -03:00
Rafael Mendes 82373ba8f7 Merge pull request #40 from simonhull/fix/enforce-param-ranges
Nodes: clamp parameters to hard limits before cooking
2026-11-05 10:35:51 -03:00
Rafael Mendes 6785310caf Merge pull request #39 from Belligerently/fix/numeric-parameter-input
Keep typed numeric parameter values across frames
2026-11-05 10:35:16 -03:00
Rafael Mendes ab0e9fa153 Merge pull request #35 from ljkx/2d-view-follows-click
2D view: show the node you click
2026-11-05 10:35:09 -03:00
Rafael Mendes 80338564d4 Merge remote-tracking branch 'origin/main' into review/pr-35
# Conflicts:
#	crates/ui-egui/src/graph_view.rs
2026-11-05 10:23:17 -03:00
Rafael Mendes 2d445acf5c Merge pull request #31 from Belligerently/fix/movable-dialogs
Allow centered dialogs to move by their title bars
2026-11-05 10:21:19 -03:00
Rafael Mendes 84f504f625 Merge pull request #25 from AndreIsraelAO/feat/22-graph-context-export
Add Export outputs to the explorer graph context menu
2026-11-05 10:19:46 -03:00
Rafael Mendes a7def58061 Guard export dimensions and verify graph context export 2026-11-05 10:19:26 -03:00
Rafael Mendes 854764bddb Merge remote-tracking branch 'origin/main' into review/pr-25 2026-11-05 10:16:37 -03:00
Rafael Mendes b3232bfbe9 Respect device texture limits for editing previews 2026-11-05 09:42:37 -03:00
SteamSmithandClaude Sonnet 5.5 105bfd5a4a fix(engine): record multi-command gestures as one undo entry
Rewiring a dragged link (Disconnect + Connect), dragging a frame (Edit
frame + Move nodes) and Import bitmap (import + add node + set param)
each made 2-3 history entries. Add Session::begin_group/end_group and
Session::group: edits inside a group share one snapshot, an untouched
group records nothing, and a failing group() restores everything. The
UI uses begin/end_group around those gestures.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:20:50 -05:00
SteamSmithandClaude Sonnet 5.5 8c6fcf64f8 fix(nodes): scale the coarse levels of Normal to Height correctly
The multigrid solve divided the slope divergence by the level's scale where it
must multiply (one coarse pixel spans `scale` full-size pixels), so the coarse
levels contributed almost nothing and the broad shape was lost. A Gaussian bump
round-tripped through Height to Normal now correlates 0.99+ at 256 and 1024 px
(0.86 at 256 before).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:16:49 -05:00
SteamSmithandClaude Sonnet 5.5 84bd8f8b9d fix(nodes): clamp numeric parameters to their declared ranges
resolve_params only checked types, so a hand-edited file, a binding to an
exposed input or a dynamic function could pass any float or int to a cook
(including NaN and 1e30). Clamp Float, Int and Float2 parameters to the
declared min/max in resolve_params (new clamp_params; non-finite values fall
back to the default; angles are left alone) and again in eval after bindings
and functions have run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:13:59 -05:00
SteamSmithandClaude Sonnet 5.5 d4ad0fc96c fix(formats): check image size from the header and sync atomic writes
decode() decoded the whole image before checking its size, so an oversized
image allocated first and was refused after. The dimensions are now read from
the header and refused before decoding, and the decoder gets width and height
limits. write_atomic syncs the temp file before the rename and uses a
per-process, per-call temp name so concurrent saves of one path do not collide.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:12:30 -05:00
SteamSmithandClaude Sonnet 5.5 178c406840 fix(ui): ask before unsaved work is thrown away
File > Open, Close all, Empty package, drag-drop and browser open, and
closing the window or Quit replaced or ended the package without
checking Session::modified. They now hold the action and show a Save /
Discard / Cancel dialog; a failed or cancelled save keeps the work. The
decision is a pure state machine (unsaved.rs) and the held action is
serde state in Windows::unsaved. Engine commands run by the control
channel, MCP and CLI still never open a dialog.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:10:57 -05:00
SteamSmithandClaude Sonnet 5.5 98279937bc fix(nodes): make Anisotropic Noise, Grunge Map 3 and Leaks tile
Each used one noise period for both axes while the cell counts differed per
axis, leaving a seam. Add noise::value_xy (separate period per axis) and use
whole-number cell counts. The noises_tile test now checks the top/bottom edge
too, compares against the mean neighbour difference, and covers the three nodes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:05:29 -05:00
SteamSmithandClaude Sonnet 5.5 75fd718c6b fix(control): merge ui.set recursively and clamp camera zoom
ui.set replaced whole top-level keys, so a partial {"prefs":{"thumbnails":false}}
reset every other preference to its default. It now merges objects
recursively. GraphCamera and ImageCamera gain sanitized(), applied after
ui.set and when drawing, so a zoom of 0 or NaN can no longer reach the
division in view_center and the 2D view.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:04:40 -05:00
SteamSmithandClaude Sonnet 5.5 14dd4448c8 fix(formats): drop whole bad triangles and reject non-finite mesh data first
Out-of-range indices were filtered one at a time, which shifted every later
triangle (and a glTF index count that was not a multiple of 3 shifted later
primitives). Importers now keep or drop whole triangles. Non-finite positions,
normals and UVs are rejected before normals, tangents and bounds are computed
from them; a NaN position used to hang the import.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:04:34 -05:00