Commit Graph
268 Commits
Author SHA1 Message Date
Dylan M. Taylor fd0f4bd4c1 Reuse shared XML escaping for SBS attributes 2026-11-15 11:08:29 -05:00
Dylan M. Taylor 01f0c70648 Use bounded portable material detection 2026-11-15 11:39:50 +00:00
Dylan M. Taylor f4e079b49d Use shared portable material archive 2026-11-15 11:36:22 +00:00
Dylan M. Taylor 6f19501a4b automation: cap workspace and trusted-local reads at 2 GiB (#240)
* automation: cap workspace and trusted-local reads at 2 GiB

* automation: format the read-cap changes

* automation: drop unneeded mut from capped reads

* automation: cover trusted read size and file-kind checks
2026-11-14 17:31:30 -05:00
Dylan M. Taylor cd9addceb4 formats: use a set for unique SBS resource names (#242)
Every resource rebuilt a vector of all existing names and scanned it linearly, making duplicate-heavy packages quadratic on open. Track used names in a HashSet and add a duplicate-name regression test.
2026-11-14 16:55:33 -05:00
Dylan M. Taylor 3a08213c55 formats: create atomic-write temps exclusively so a planted symlink is never followed (#239) 2026-11-14 15:55:15 -05:00
Dylan M. Taylor 703d3b1cf4 Bound SBS input bytes, wire counts and stored warnings (#237)
* formats: bound SBS input, wires and stored warnings

* formats: format the SBS size check
2026-11-14 15:21:33 -05:00
Dylan M. Taylor 6f5812f8ef engine: cap linked SBS resources at 256 MiB (#236) 2026-11-14 15:21:29 -05:00
Dylan M. Taylor 3a2b421e6d Refuse oversized .mcraft archives (#235)
* Refuse oversized .mcraft archives

The archive reader had no entry-count, per-entry or aggregate decompression
limit: every member was read to its end and retained, so a small zip bomb
could exhaust memory on Open. Members are now limited to 100 000 entries,
256 MiB each and 1 GiB together, and a member is read at most one byte past
its allowance before the archive is refused.

* formats: drop the unused mut on the capped zip entry
2026-11-14 14:32:52 -05:00
Chris Hassebrook bb7434478c Matching CI to TextureCraft (#222)
* ci: port TextureCraft verification improvements

* fix: keep CI green on stable Rust
2026-11-14 08:52:48 +01:00
FredApps 3133062968 Merge pull request #147 from SteamSmith/fix/146-mcp-ui-input-schema
Give ui_input events an object item schema
2026-11-13 10:28:38 +01:00
Dylan M. Taylor b73facdc7b fix(flatpak): honor the launcher version choices (#208) 2026-11-11 19:06:20 -05:00
Dylan M. Taylor d8aceb5cc8 Fix Flatpak permissions for update checks and self-updates (#205)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules
2026-11-11 14:24:20 -05:00
PiJellyPin b89c25a6a8 Fixing Export Options 2026-11-11 02:51:54 +01:00
Dylan M. Taylor 4fb799dcf2 Sonar: [[ in packaging scripts, no literal empty range in a slider test (S7688, S7432) (#193)
Clears all 69 open SonarCloud issues.

- `packaging/{linux,macos,freebsd,web}/*.sh`: `[[ ]]` 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.
- `packaging/web/package.sh`: the wasm size override is read as base 10 (`$((10#…))`), since `-gt` inside `[[` evaluates its operands arithmetically (a leading zero would read as octal). Same as photocraft.
- `crates/ui-egui/src/property/input.rs`: the reversed-limits slider test passes its limits through variables, as imported limits arrive, instead of a literal `3.0..=2.0` (rust:S7432). Same range, same test.

Compile and tests are left to CI.
2026-11-10 18:45:14 -05:00
Chris Hassebrook 1be664c2bf Merge pull request #186 from storytold/185-parameter-controlling-function-graphs
Add parameter-owned function graphs
2026-11-10 05:27:18 -05:00
chasse20 709cd7f86e Fix function instance inputs and cache refresh 2026-11-10 05:15:39 -05:00
chasse20 131c7b8853 Fix parameter defaults, sizing and tooltips 2026-11-10 04:54:21 -05:00
chasse20 85e0bf9247 Add parameter-owned function graphs 2026-11-10 04:07:54 -05:00
PiJellyPin 613e483781 More stuff 2026-11-10 08:47:42 +01:00
PiJellyPin 8ad7318efd Merge branch 'main' into pr/116 2026-11-10 08:47:30 +01:00
chasse20 2a72c06d9f Merge concurrent UI changes while preserving reviewed behavior
Retain sampler insertion, graph items, annotation editing, metadata and menu fixes. Integrate function search and quick-insert toolbars, deduplicate categorized search results, and apply current search text before selection.
2026-11-10 00:15:10 -05:00
chasse20 bc2f20b365 Fix library review, graph annotations and processor sampling 2026-11-09 23:59:27 -05:00
PiJellyPin 91333baf33 Other Fixes 2026-11-10 04:54:37 +01:00
PiJellyPin 7ec846cf27 Fixed Library UI 2026-11-10 02:51:07 +01:00
PiJellyPin 9290c2d906 Listing all nodes from custom functions.sbs
also fixed library ui with categories
2026-11-10 00:52:05 +01:00
dotCooCoo 590894b346 test(ui): toolbar test finds buttons by position, not translated label 2026-11-09 07:07:53 -08:00
dotCooCoo c54e289a9d fix(ui): toolbar buttons are disabled when a blocker refuses their command
The toolbar's New graph, Open package, Save and Export buttons stayed
enabled behind a dialog and did nothing when clicked. They now follow
the same rule as the menu items.
2026-11-09 06:30:56 -08:00
dotCooCoo 2eea5eef2c fix(ui): node search, the add-node filter and sample tiles stop behind a dialog
Node search takes no keys, focus or outside clicks while input is
blocked and does not open behind a blocker. The add-node menu's letter
filter does not change while blocked. Sample tiles are disabled behind
a dialog. A file dialog keeps its commands enabled only when nothing
else blocks input. The control protocol notes that the installed-update
notice does not block.
2026-11-09 06:26:59 -08:00
dotCooCoo 49d8d2e16b fix(ui): shortcuts and floating OS windows stop while a dialog or prompt is open
Delete edited the package behind the Save, Discard, Cancel prompt, and
floating OS windows stayed live behind every dialog, because no single
function said whether input was blocked.

Modality::capture answers it from the app's dialogs, the unsaved prompt,
native file dialogs, the update prompt and result window, and egui's
modal layer. Shortcuts, Graph, Function and FX-Map keys, the node search
and add menus, file drops, floating OS windows, Home's actions and menu
items all read it. Home and the Shortcuts list do not block.

Behind a file dialog, the commands that show one still run, so File >
Open brings a hidden macOS Open panel forward.

ui.menu.invoke now returns an error behind a dialog instead of ok,
ui.menu.list reports those items as disabled, and package_save without a
path in bridge mode returns the same error. command.run is unchanged.

Floating panels drawn inside the main window, as on the web build, still
take clicks behind a dialog until the dialogs use egui's modal layer.
2026-11-09 05:31:22 -08:00
Chris Hassebrook 7476e99d1f Merge pull request #176 from ljkx/graph-wire-from-input
Graph: pull a wire from an unconnected input
2026-11-09 03:29:39 -05:00
chasse20 654847d0bb Fix browser save and imports 2026-11-09 03:01:28 -05:00
chasse20 535d83eaf4 Merge main and preserve project dialogs with shared UI 2026-11-09 02:00:54 -05:00
chasse20 a67d2dd205 Fix Windows workspace test cleanup 2026-11-09 00:58:45 -05:00
dotCooCoo 472d73eb87 feat(ui): move window, dialogs, shortcuts and quit to the shared crates
Bump craft-ui to craft-libs 1b34eba and add craft-keymap, craft-dialogs,
craft-quit, craft-menu (macOS) and craft-window.

File dialogs no longer block the event loop. Shortcuts dispatch through
craft-keymap and match exactly their modifiers. On macOS, Quit asks about
unsaved work and the app quits through the platform. On a Wayland desktop
that leaves the frame to the app, the menu bar is the title bar.
2026-11-08 21:41:59 -08:00
chasse20 f5dfa3f2a5 Merge main into package formats branch 2026-11-09 00:26:53 -05:00
ljkx 3cf1262c8d Graph: pull a wire from an unconnected input
Pressing an unconnected input and dragging now pulls a wire out of it,
and dropping it on another node's output connects the two, in the
material graph and in the function graph editor. Dropped anywhere else,
nothing changes. #53 added this to the material graph, but it was lost
when the canvas was rebuilt as the graph/ module.

Fixes #13
2026-11-09 06:12:55 +01:00
chasse20 6476794acc Simplify folder name collision checks 2026-11-09 00:11:34 -05:00
chasse20 54ab0fc877 Remove package and import limits 2026-11-09 00:01:56 -05:00
chasse20 49e99948d9 Fix package round trips 2026-11-08 23:31:17 -05:00
dotCooCoo d23d6c76f1 feat(ui): check for new releases and update the app from inside it
Add Help > Check for updates... (ui.help.checkForUpdates), a check at
startup, the update prompt and result dialog from craft-update, and the
Windows update helper entry point.

A copy of the app downloaded directly was never told about a new version.
Runs driven by --control or MATERIALCRAFT_NO_PREFS skip the startup check.
Shortcuts wait while the prompt or a modal result dialog is open. The
update code builds on desktop only; the web build is unchanged.
2026-11-08 20:25:11 -08:00
chasse20 c1344b8e17 Place New before Import in Explorer menus 2026-11-08 23:04:33 -05:00
chasse20 22cfbb5c39 Allow an empty Explorer after closing projects 2026-11-08 22:58:14 -05:00
chasse20 fc4cde095f Complete Explorer resources and SBS folder attributes 2026-11-08 22:45:22 -05:00
chasse20 cc052aeaa8 Support SBS resources and independent MCRAFT packages 2026-11-08 22:10:35 -05:00
chasse20 b1cef33336 Fix texture cleanup in native close test 2026-11-08 19:01:41 -05:00
chasse20 43d706f3d9 Merge main and align integration tests 2026-11-08 18:40:04 -05:00
chasse20 158e1c85e3 Fix graph editing and make undo configurable 2026-11-08 18:11:10 -05:00
chasse20 a0032d6ac2 Add SBS function library and Explorer graph editing 2026-11-08 17:25:08 -05:00
SteamSmith 09bccc3a8c fix(ui): draw the moving 3D view with 2x2 rays and grow it to fit the frame budget
A moving frame was one ray per pixel at half size, so edges showed as visible
stair-steps until the full-quality frame landed. It now uses 2x2 rays and picks the
largest of four levels (half size 1 ray, half size 2x2, three-quarter 2x2, full 2x2)
whose last frame took under 32 ms, dropping a level when a frame goes over. The lowest
level is the previous frame, so a slow machine does no worse than before.
2026-11-08 12:38:24 -05:00