craft-libs main carries the Dock Panel placement fix (storytold/craft-libs#3601):
a panel docked back from a float, or reopened after it was closed while floating,
returns to its place beside its old neighbour.
As before the move to the craft-ui runtime, Ctrl+Q asks the main window to
close whatever has the keyboard there, so unsaved work is asked about. In
a floating panel's own window, where the key closed only that window, it
asks in the same way. The runtime's Quit command runs the key.
The test asserts MaterialCraft's own close decision for a clean package,
as it did with an injected quit, so it passes on macOS, where the
platform's quit cancels the window close. Unsaved work still runs the
whole close frame.
As before the move to the craft-ui dock, a tab held while the layout
resets is not dropped into the reset layout. The reset replaces the
workspace, so its generation changes; ordinary edits keep theirs.
As before the move to the craft-ui dock, showing a panel from the Windows
menu, the explorer, the graph or the library raises the floating window
that holds it, once. Docked panels only become the front tab.
As before the move to the craft-ui runtime, F6 and Shift+F6 reach
MaterialCraft's node shortcuts and the shortcut recorder. The runtime's
pane moves, which took both chords out of egui's input, are unbound.
Conflicts: main.rs (kept the port's frame decision and framework install, took main's Nightly window name, build version and exit hook, dropped window_layout), material_craft_app.rs (kept on_exit and the port's raw_input_hook), updates_ui.rs and its test (main's optional updater on the port's Updater::run and UpdateCheckDialog). The framework install takes the app id from os_window.
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
- Every aiongg/craft-libs dependency moves to cd87dc61f7 (QuitCommand::Quit and HostBuilder::icon_png).
- The host carries MaterialCraft's 128 px app icon, which the update dialogs show.
- MaterialCraft keeps its own ui.quit (File > Exit, Ctrl+Q), so the framework's window.quit is unbound in the command overrides.
The runtime is installed in the desktop and web shells and fed each frame;
the unsaved-work question decides in the framework's close path. Panels dock
in next's DockArea beside the saved workspace (file format unchanged), with
the graph as the canvas group. The update dialogs run on a DialogHost. Where
the app draws the window frame, the menu bar sits in the framework's title
bar. Escape no app widget takes arrives as the window's cancel and still runs
the Escape shortcuts. Shortcuts match through craft_keymap::Matcher with the
old dispatcher's contract. Removed framework helpers (widget palette, icon
button painter, interface direction) are app-local or come from craft-i18n.
Test harnesses that draw the app install the runtime.
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)
* Drop local rule links and instructions
* State that .mcmat goes through the shared craft-mcmat crate
---------
Co-authored-by: aiongg <aiongg@users.noreply.github.com>
* formats: pin craft-texture to craft-libs main and test DDS edge cases (#778)
* test(formats): pass byte slice to dds::ImageView::new for RGBA_F32
* test(formats): assert SNORM8->[0,1] mapping in DDS test
* formats: share SBS package/schema read/write via craft-sbs
* chore: update craft-sbs pin and fix example ParsingOptions
* formats: remove unused SBS constant re-exports
* formats: remove unused parse_ints re-export
* formats: fix test visibility and manifest dependencies
* chore: repin craft-sbs to storytold/craft-libs main
* Publish selected graphs as MCMAT v3 and bake parameterized MaterialX exports
* Preserve material bake dimensions, color conventions and completed exports
* fix(export): preserve grayscale transfer round trips and float defaults
* fix(material): preserve disabled nodes and localized typed inputs
* Fix capability FIFO opens and save destination link rebasing
* Keep material export dialogs bound to their source package
* fix(material): bound inline assets and pin merged MCMAT
* fix(sbs): reject graph interfaces that exceed reader bounds
* Bound resize scheduling test raster workload
* fix(material): retain inline precedence on budget errors
* fix(material): preserve bounded fallback and XML identifiers
* fix(material): bound discarded inline inflation work
* Preserve bounded material dependencies and explicit export options
* Auto: Pin workspace saves and preserve material export choices
Hold the resolved save directory across SBS serialization and writes. Only
clean up owned staging files and compare existing assets incrementally.
Bound source assets before archive serialization, limit discarded SBS
inflation, and account for shared graph depth. Decode preview inputs on
demand and release failed browser downloads.
Distinguish automatic and explicit output colors, borrow graphs while drawing
export tabs, and preserve numeric export selectors and MCP option validation.
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
Consume the headless egui frame with drop_without_applying_deltas so its initial font texture can be discarded safely in debug builds.
Send an explicit Alt transition between key events so the existing Levels assertion detects a matcher that uses the frame's final modifiers. Preserve the repeat assertion.
Apply preview size only after confirmation, and keep canceled preview
values out of parameter capture. Resolve reserved graph names in fresh
packages. Publish recovery archives atomically under a folder lock and
prune complete copies with bounded memory.
Give each document an exclusive recovery history, skip occupied version names, and stream native archive saves. Publish pending linked edits before Save All selects packages, and preserve each document's result on partial failure.
Commit destructive preference changes on Apply or OK. Respect the 3D preview preference on open and reload, discard cancelled cooks, and validate graph destinations before switching documents.
Reuse the Library catalog and borrow its keys on cache hits. Keep template textures with their app, correct shortcut handling and help links, and omit personal document details from exported diagnostics.
* craft-libs: take every crate from craft-libs main at 3af2280ee
The 15 craft-libs dependencies in the workspace Cargo.toml were pinned at
six different revs. They now all use 3af2280ee, the craft-libs main that
merged storytold/craft-libs#1337. Cargo.lock changes only the craft-libs
sources, and the two craft-xml entries become one.
* craft-libs: take every crate from craft-libs main at 453b0da78
Every craft-libs dependency now names rev 453b0da782ccef39be9a6dac8d27c80b553ef1cc.
- With one rev for every crate, craft-texture and the craft-texture-dds alias are the same
package, which cargo does not allow under two names. materialcraft-formats now takes
craft-texture with its dds feature, and dds_image.rs uses craft_texture paths.
- Cargo.lock comes from cargo update --workspace: only craft-libs sources change, the two
craft-texture and two craft-xml entries become one each, and craft-dds is added as a
dependency of craft-image-codecs.
- Updater::offer now opens the prompt at a later tick, after its own thread has inspected the
install (storytold/craft-libs#1149). The update-prompt tests use a helper that offers and
ticks until the prompt is open, and fails if the offer is declined.
* Updates: the offer test helper fails when the offer's thread ends without an answer
The helper that waits for an offered release's prompt ticked until the
prompt opened. When the offer's channel disconnects, the updater drops
the offer without a prompt (craft-update `updater.rs:606-610` at
453b0da78), so the helper kept ticking forever. It now runs each tick
through `Context::run_logic` and fails when a tick leaves no prompt, no
launcher choice and no repaint request, which the updater makes on
every tick while the offer waits for its thread.
* Updates: the offer test helper's message and comment match what it checks
The helper fails when a tick leaves the prompt closed and asks for no frame,
which also covers an offer that ends without opening the prompt for a reason
other than its thread ending. The failure message and the doc comment now say
that.
---------
Co-authored-by: chasse20 <chasse20@gmail.com>