Commit Graph
96 Commits
Author SHA1 Message Date
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 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
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
FredApps 8b72a7c0b9 Merge remote-tracking branch 'origin/main' into fix38 2026-11-05 04:14:55 +01: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 62bf83cf6b Fix the MaterialCraft 0.1.2 lock file 2026-11-04 18:34:24 -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
AndreIsraelAO 3947e3c6f5 Merge main into feat/22-graph-context-export 2026-11-04 17:53:40 -03: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
PiJellyPin 0a29b6d8c9 Merge pull request #51 from storytold/49-change-to-sbs-instead-of-mcraft
Load sbs files, and save them
2026-11-04 09:01:27 +01:00
PiJellyPin 66fdba878f Testing a bunch of stuff 2026-11-04 08:47:10 +01:00
PiJellyPin ef27065140 Merge branch '49-change-to-sbs-instead-of-mcraft' of https://github.com/storytold/materialcraft into 49-change-to-sbs-instead-of-mcraft 2026-11-04 08:37:25 +01:00
PiJellyPin 93cbec5622 Update .gitignore 2026-11-04 07:26:10 +01:00
Chris Hassebrook d62ca9ac53 Merge branch 'main' into 49-change-to-sbs-instead-of-mcraft 2026-11-04 01:11:49 -05:00
PiJellyPin 6310230ecd Load sbs files
save, load etc.. for sbs files
2026-11-04 07:03:54 +01:00
Zachary Aflalo c97f92abff Start desktop and browser sessions with an empty graph (#29) 2026-11-04 06:17:40 +01:00
Belligerently 73378cbfd8 Keep typed numeric parameter values across frames 2026-11-03 17:16:16 -05:00
test-bit-sys 0dee441161 feat(i18n): add complete Arabic (ar) UI localization and font fallbacks
- Add full Arabic translation table (363 entries) in crates/ui-egui/src/i18n/ar.rs
- Implement live language switching, locale detection and RTL support in crates/ui-egui/src/i18n.rs
- Add system font fallbacks for Arabic (Segoe UI, SF Arabic, Noto Sans Arabic) in crates/ui-egui/src/fonts.rs
- Add language selector combo box to Preferences dialog in crates/ui-egui/src/windows.rs
- Add language preference persistence in crates/ui-egui/src/state.rs
- Update docs/localization-parity.md tracking Arabic support
2026-11-03 22:45:17 +01:00
Simon Hull eef9f5397f Nodes: clamp parameters to hard limits before cooking 2026-11-03 14:23:07 -06:00
Simon Hull 2bd4fd35b8 Control channel: harden the token file and the app's control server
The app wrote its control token to the temp folder with default permissions from a
hash-based generator, compared it with ==, spawned unlimited threads and let an
unauthenticated client hold a connection for 10 minutes. The shared token file was opened
with create+truncate, which follows a planted symlink.

- Token files are created new (remove, then O_EXCL) with mode 0600; clients only read a
  regular, owner-only, non-symlink file.
- The app's control server uses the shared security module: OS-random token, constant-time
  compare, bounded lines, at most 16 connections, one auth attempt within 10 s, close on
  malformed JSON before auth.
- serve --port and the app bind before writing the token file.

Ported from TextureCraft 5a065c1 and 836e3f2.
2026-11-03 13:17:16 -06:00
Simon Hull 4b97a81f7d Formats: bound package load memory, check image size before decoding, guard parsers 2026-11-03 13:08:13 -06:00
Rafael MendesandClaude Opus 5.5 936b8a3b08 chore(levels): keep clear of the lines the wire and alpha PR edits
Move the Levels screenshot's ATTRIBUTION row, the README mention, the
architecture note and the snapshot scene to places #36 does not touch, so
the two pull requests merge in either order without conflicts. No change
in behavior; the snapshot scene now runs last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 15:26:01 -03:00
Rafael MendesandClaude Opus 5.5 934c227774 feat(levels): histogram editor in the properties panel
Selecting a Levels node now shows a visual editor above its sliders: a
histogram of the node's input (256 bins; red, green and blue overlaid for a
color input; scaled to the tallest bin between pure black and white) with
the clipped ranges shaded and the levels transfer curve on top, draggable
input low/mid/high handles under it and output low/high handles under a
black-to-white bar.

Fixes in how Levels is edited: Level in mid is relative to the input range,
and its handle now sits where it acts and moves with the range; the input
low and high handles cannot cross. Parameters bound to inputs or driven by
functions keep their handles locked. Every drag is a graph.node.param
command, one undo step per handle. levels_fn no longer propagates NaN.

Tests cover the histogram, the handle constraints and the remap math; the
snapshots UI test renders the editor. Documented in docs/levels-editor.md.

Clean-room implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 15:03:08 -03:00
Rafael MendesandClaude Opus 5.5 29dee321d9 feat(graph): select several wires and swap their sources with X
Shift+click adds a wire to the selection and Ctrl+click toggles it. With two
or more wires selected, X swaps where they come from: two wires trade
sources, more reverse them in target-node and input order, so selecting a
Blend node's foreground and background wires and pressing X swaps the two
layers. The wires stay selected, so X again swaps back. Delete and
Backspace remove every selected wire in one undo step, and the wire menu
gains Swap selected links and Delete selected links.

New commands graph.wire.swap and graph.wire.delete take
{wires: [{to, toPort}, ...]}; a swap that would make a cycle is refused and
changes nothing. Engine and UI tests (real clicks on a Blend node) cover
both; docs/wires-and-alpha.md documents the gestures, the ordering rule and
the commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:43:32 -03:00
Rafael MendesandClaude Opus 5.5 8f4dd5b6c1 feat: alpha in the 3D view; select, delete and reroute wires
3D view: the material's alpha (the Opacity output, else the Base color's
alpha channel) now makes the mesh see-through. Rays composite front to back
through up to eight transparent layers and back faces shade toward the
viewer, so the inside of a cut-out mesh and the environment show through.
view.3d takes `transparency` (default on) and `alphaView`; the Display menu
and a bottom-bar button toggle an unlit view of the alpha channel.

Graph editor: click a wire to select it (Delete or Backspace removes it),
drag a wire to pull a reroute Dot out of it, double-click a wire to drop a
Dot there, right-click a wire for Insert reroute dot and Delete link. The
new graph.wire.insertDot command splits a wire with a Dot in one undo step.

Docs: docs/wires-and-alpha.md (gestures, commands, rendering, tests) with
two snapshot screenshots, plus architecture, parity, control protocol,
README and ATTRIBUTION updates.

Clean-room implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:32:48 -03:00
ljkx 7feafbf533 2D view: show the node you click
A single click only changed the selection, and the 2D view prefers a node
shown with a double-click, an output port or "View in 2D view" over the
selection, so after any of those, clicks never changed the view until the
graph was switched. A click that leaves a node selected now shows it; a
deselecting Ctrl+click or a drag does not, and the node already shown keeps
its chosen output port.

Fixes #10
2026-11-03 16:55:02 +01:00
Belligerently af83c228c3 Allow centered dialogs to move by their title bars 2026-11-03 09:59:48 -05:00
Brandon Thomas f1bb82e8e0 Merge pull request #26 from dylanmtaylor/feat/linux-signing
ci(release): sign the Linux packages with LINUX_SIGNING_KEY
2026-11-03 08:27:33 -05:00
Brandon ThomasandClaude Opus 5.5 71632d82ef ci(release): match the current Flatpak OCI scaffold
Signed bundles get no OCI update source until LINUX_OCI_SIGNATURES_READY
is set, and only a stable release-branch build moves the stable OCI tag,
as storytold/craft-common-actions' scaffold-flatpak-oci.sh now does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 08:27:28 -05:00
AndreIsraelAO e816ad75bb Keep export proportions and expose size in the CLI and MCP
size is now the larger side in pixels and the other side keeps its
proportion; 0 means the graph's size. Adds --size to the CLI export,
size to the MCP outputs_export, and the docs line. The resolution combo
shows the graph's real size.

Refs #22
2026-11-03 07:29:07 -03:00
AndreIsraelAO 3a104b4e72 Add a resolution option to Export outputs
Adds size to file.export and a Resolution selector to the export window.
Only open the export window when the graph opened.

Refs #22
2026-11-03 00:26:12 -03:00