Commit Graph
287 Commits
Author SHA1 Message Date
FredApps 1d6dfe2240 Copy the shared house rules into AGENTS.md.
The blocks come from craft-contrib at dde09ea31e2e457f5b4653a6e76f7cdf55944bdf. CLAUDE.md imports AGENTS.md. The house-rules workflow checks the copy.
2026-11-06 11:50:01 +01:00
3d399dd1a5 Keep typed graph name and attribute text across frames (#124)
* Keep typed graph name and attribute text across frames

Typing a graph name or attribute currently loses the text between frames, so the edit never reaches the engine command on focus loss. Persisting the draft across frames, as the slider and preset name already do, makes the edit commit correctly.

Store the in-progress graph name and attribute text in temporary UI data while editing, like presets_bar does, and commit the stored text on lost_focus. Add a harness test that types a new graph name across several frames, moves focus away, and asserts the renamed graph.

Test: graph_name_typed_across_frames_commits_on_focus_loss failed before the change and passes after.

* Graph properties: a draft field's id salt is a string

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:23:13 +01:00
d560df3392 Restore modified flag when undoing to saved state (#112)
* Restore modified flag when undoing to saved state

Undoing every edit should return the session to its saved, unmodified state so the unsaved-work prompt is not shown spuriously.

Make undo and redo preserve the restored snapshot's modified flag while still marking the graph dirty for cooking, and add a regression test that edits from a clean session and undoes to assert modified is false.

Test: undo_to_unmodified_state_clears_modified_flag failed before the change and passes after.

* Tests: add a node that exists on main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:20:32 +01:00
0e160cd53a Fix 4K preview texture refresh in 2D view (#122)
Users switching to 4K previews saw stale low-resolution textures in the 2D view.

Include image dimensions in the texture cache key so a size change reloads the texture at the new resolution.

Test: four_k_preview_refreshes_texture_after_size_change failed before the change and passes after.

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-06 10:10:44 +01:00
a0180da9b6 Reply to non-UTF8 lines on the control channel (#118)
Clients cannot tell a refused non-UTF8 request from a dropped connection, unlike malformed JSON which gets an explicit error reply.

Make the TCP control servers reply with an error for non-UTF8 lines, closing before auth and continuing after auth like bad JSON.

Test: non_utf8_line_before_auth_gets_refusal_reply failed before the change and passes after.

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-06 10:10:38 +01:00
d05d2bf0a9 Clamp enum and degenerate-range parameters to hard limits (#115)
A hostile file or binding could supply an out-of-range enum or degenerate-range numeric value that reaches a cook unclamped, breaking the hard-limits guarantee for node parameters.

Make clamp_params bound enum values even with no options and bound numeric values even when min is not below max, using the same hard-span limits as other parameters.

Test: clamp_params_bounds_enum_without_options failed before the change and passes after.

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:10:32 +01:00
c479765c01 Reject non-finite glTF normals before normalizing them (#114)
A glTF file with NaN or infinite normals currently loads as a mesh with zero normals instead of being rejected like non-finite positions, UVs and OBJ normals.

Check raw glTF normals for finiteness before transforming them and return an error for non-finite values, matching the existing finish() checks.

Test: gltf_non_finite_normals_are_rejected failed before the change and passes after.

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-06 10:10:27 +01:00
0ce7a6aafb Hash bound input-image resources into graph instance cache keys (#110)
* Hash bound input-image resources into graph instance cache keys

A graph instance can show a stale preview image after its bound bitmap resource is replaced, because the instance cache key never changes. Hashing those resources makes the instance re-cook when the bitmap changes.

Include the content hashes of resources referenced by graph.input_images (and their linear flags) in graph_tree_hash, and add a regression test that cooks an instance, replaces the bound resource bytes, and asserts the new image is cooked instead of the cached one.

Test: bound_input_image_resource_change_recooks_instance failed before the change and passes after.

* Address review for pull request 110

---------

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:10:21 +01:00
Chris Hassebrook 1a468e7ee0 Merge pull request #125 from storytold/18-parity-for-standard-sbs-nodes
18 parity for standard sbs nodes
2026-11-06 01:38:19 -05:00
chasse20 74ff4a9dc3 Fix debug UI tests and remove redundant coverage 2026-11-06 01:22:07 -05:00
chasse20 2adbdf4aab Merge main while preserving native graph architecture 2026-11-06 00:58:56 -05:00
chasse20 fe88ee5c4d Unify graph editors and optimize material workflows 2026-11-06 00:13:10 -05:00
chasse20 d318484b41 Checkpoint native SBS primitive workflow
Replace the legacy Rust procedural library with clean-room native primitives, typed function execution and FX-Map graphs. Save supported content as native SBS and organize the model, evaluators, codecs and editors into focused modules.

Add shared graph editing behavior, flat filtered node menus, frame and comment editing, named Explorer outputs and an original atomic sample. Document the tested scope and remaining interoperability work.
2026-11-05 18:23:06 -05:00
FredApps 9e60c407a6 Merge pull request #109 from storytold/fix/audit-preview-size
Post mass-merge fix.
2026-11-05 22:46:59 +01:00
FredApps 96af836440 Memoize immutable input fingerprints safely 2026-11-05 22:35:45 +01:00
FredApps 9c08a25bb6 Fix preview sizing and input image cache keys 2026-11-05 22:07:18 +01:00
FredApps 56407b9470 Revert the batch rollback and restore prior main 2026-11-05 22:04:58 +01:00
Rafael Mendes a7b9194820 Revert reviewed PR batch and cancel 0.1.3 preparation
Restore tracked files to 91bb53f07a, immediately before the batch, at the maintainer request. Preserve the existing history and earlier work, including PR #38. Revert the 50 reviewed PR merges and the version bump in 441092c. The published 0.1.2 release is unchanged.
2026-11-05 17:48:14 -03:00
Rafael Mendes ecf81d3dbd Merge remote-tracking branch 'origin/release' 2026-11-05 16:21:09 -03:00
Rafael Mendes 441092c8bc Release MaterialCraft 0.1.3 2026-11-05 16:21:09 -03:00
Rafael Mendes 8b4b89cf4d Merge pull request #99 from Belligerently/fix/export-name-collisions
Reject colliding filenames before exporting maps
2026-11-05 16:02:03 -03:00
Rafael Mendes 1d2101f91b Merge pull request #98 from Belligerently/fix/reset-parameter-drivers
Clear parameter drivers when restoring defaults
2026-11-05 16:02:00 -03:00
Rafael Mendes b37d3c03cb Merge pull request #97 from Belligerently/fix/subgraph-selection-seed
Preserve the graph seed when grouping selected nodes
2026-11-05 16:01:56 -03:00
Rafael Mendes a166cbdf77 Merge pull request #96 from Belligerently/fix/delete-relink-input-order
Use declared input order when deleting and relinking nodes
2026-11-05 16:01:53 -03:00
Rafael Mendes 6174f4391d Merge pull request #95 from Belligerently/fix/view-settings-validation
Preserve view settings when a request is rejected
2026-11-05 16:01:49 -03:00
Rafael Mendes f48a0b559e Merge pull request #94 from Belligerently/fix/distance-source-propagation
Fix Distance node edge artifacts with exact source propagation
2026-11-05 16:01:46 -03:00
Rafael Mendes 6fc3c65a26 Reject case-insensitive export collisions before writing files 2026-11-05 16:01:19 -03:00
Rafael Mendes d4beea261e Merge remote-tracking branch 'origin/pr/99' into review/pr-99 2026-11-05 15:53:09 -03:00
Rafael Mendes 24601325ca Merge remote-tracking branch 'origin/pr/98' into review/pr-98 2026-11-05 15:53:09 -03:00
Rafael Mendes 288d534944 Merge remote-tracking branch 'origin/pr/97' into review/pr-97 2026-11-05 15:53:09 -03:00
Rafael Mendes 37a46b504d Merge remote-tracking branch 'origin/pr/96' into review/pr-96 2026-11-05 15:53:09 -03:00
Rafael Mendes 697a803017 Merge remote-tracking branch 'origin/pr/95' into review/pr-95 2026-11-05 15:53:09 -03:00
Rafael Mendes 7abc44eb0d Merge remote-tracking branch 'origin/pr/94' into review/pr-94 2026-11-05 15:51:22 -03:00
Rafael Mendes e225419678 Merge pull request #91 from SteamSmith/fix/compound-undo-entries
fix(engine): record multi-command gestures as one undo entry
2026-11-05 15:51:20 -03:00
Rafael Mendes 0a4ef6f039 Keep failed command groups atomic and preserve redo history 2026-11-05 15:51:15 -03:00
Rafael Mendes 63cb7db0c5 Merge pull request #90 from SteamSmith/fix/undo-merge-ends
fix(engine): end undo merge runs at gesture and request boundaries
2026-11-05 15:39:29 -03:00
Rafael Mendes 9b8eb0e783 Keep undo boundaries and restore failed edit state across guarded commands 2026-11-05 15:37:25 -03:00
Rafael Mendes 797fe4d1c4 Merge pull request #89 from SteamSmith/fix/confirm-unsaved-work
fix(ui): ask before unsaved work is thrown away
2026-11-05 15:31:09 -03:00
Rafael Mendes 65e817fd17 Keep unsaved confirmation bound to its original action and package bytes 2026-11-05 15:29:17 -03:00
Rafael Mendes 191c803995 Merge pull request #88 from SteamSmith/fix/image-decode-limits
fix(formats): check image size from the header and sync atomic writes
2026-11-05 15:25:24 -03:00
Rafael Mendes 9fa360bb69 Preserve decoder bounds and create atomic save files exclusively 2026-11-05 15:25:17 -03:00
Rafael Mendes 3186590d02 Merge pull request #87 from SteamSmith/fix/mesh-import-hardening
fix(formats): drop whole bad triangles and reject non-finite mesh data first
2026-11-05 15:23:05 -03:00
Rafael Mendes f1cd7f4387 Stream mesh indices and stop before exceeding the triangle budget 2026-11-05 15:22:47 -03:00
Rafael Mendes 3fa7540b61 Merge remote-tracking branch 'review/latest87' into review/pr-87 2026-11-05 15:21:45 -03:00
Rafael Mendes b398dff4dd Merge pull request #86 from SteamSmith/fix/bitmap-colour-space
fix(formats): choose sRGB or linear when reading bitmaps
2026-11-05 15:21:43 -03:00
Rafael Mendes cc9a5b3c82 Keep bitmap color-space requests unambiguous and inspectable 2026-11-05 15:19:39 -03:00
Rafael Mendes 732296703c Merge pull request #85 from SteamSmith/fix/package-zip-amplification
fix(formats): cap and share package resource reads, error on missing entries, dedupe saved names
2026-11-05 15:17:47 -03:00
Rafael Mendes 30621629e8 Preserve shared package resources and enforce read and write size budgets 2026-11-05 15:17:30 -03:00
Rafael Mendes c7274d32f8 Merge pull request #84 from SteamSmith/fix/normal-to-height-multigrid
fix(nodes): scale the coarse levels of Normal to Height correctly
2026-11-05 15:11:18 -03:00
Rafael Mendes 0a561fa681 Integrate normal-to-height solver with the complete filter regression suite 2026-11-05 15:08:06 -03:00