mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-22 07:20:57 +01:00
* 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>
165 lines
4.2 KiB
Rust
165 lines
4.2 KiB
Rust
#![forbid(unsafe_code)]
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
#[cfg(test)]
|
|
extern crate self as materialcraft_engine;
|
|
|
|
mod decoded_images;
|
|
mod display_snapshot;
|
|
pub use display_snapshot::DisplaySnapshot;
|
|
mod display_cmds;
|
|
mod document_path;
|
|
mod evaluation_environment_commands;
|
|
mod explorer_clipboard;
|
|
mod explorer_clipboard_commands;
|
|
mod folder_commands;
|
|
mod folder_path;
|
|
mod folder_property_commands;
|
|
pub use explorer_clipboard::ExplorerClipboard;
|
|
mod function_library;
|
|
mod function_library_commands;
|
|
pub mod node_library;
|
|
mod node_library_commands;
|
|
pub use node_library::{LibraryCanvas, LibraryEntry, LibraryItem, NodeLibrary};
|
|
mod function_variable;
|
|
mod function_variable_commands;
|
|
mod function_variables;
|
|
pub use function_variable::FunctionVariable;
|
|
mod document_history;
|
|
mod document_history_commands;
|
|
mod graph_instance_commands;
|
|
mod graph_references;
|
|
mod linked_files;
|
|
mod linked_packages;
|
|
mod linked_resource;
|
|
mod material_preview;
|
|
mod material_preview_commands;
|
|
mod material_source;
|
|
mod node_info_commands;
|
|
mod open_document;
|
|
mod package_commands;
|
|
mod package_file_commands;
|
|
mod preview_cook;
|
|
mod preview_fingerprint;
|
|
mod resource_commands;
|
|
mod save_all_commands;
|
|
pub use material_preview::MaterialPreview;
|
|
pub use material_source::MaterialSource;
|
|
pub use open_document::OpenDocument;
|
|
pub use preview_cook::PreviewCook;
|
|
|
|
mod alignment_commands;
|
|
mod embedded_clipboard;
|
|
mod graph_validation;
|
|
pub mod selection_commands;
|
|
mod selection_target;
|
|
pub use embedded_clipboard::EmbeddedClipboard;
|
|
pub use selection_target::SelectionTarget;
|
|
pub mod commands;
|
|
pub mod edit_cmds;
|
|
pub mod file_cmds;
|
|
pub mod graph_cmds;
|
|
mod graph_property_commands;
|
|
mod graph_target;
|
|
mod history_prefs;
|
|
mod library_cache_commands;
|
|
mod library_cache_prefs;
|
|
pub use graph_target::GraphTarget;
|
|
pub use history_prefs::HistoryPrefs;
|
|
pub use library_cache_prefs::LibraryCachePrefs;
|
|
pub mod graph_edit;
|
|
pub mod graph_grid;
|
|
pub mod inspect;
|
|
pub mod material_bake;
|
|
pub mod material_cmds;
|
|
pub mod node_cmds;
|
|
pub mod samples;
|
|
pub mod session;
|
|
mod value_input_commands;
|
|
pub mod view_cmds;
|
|
pub mod wire_cmds;
|
|
pub mod wire_swap;
|
|
|
|
pub use commands::{CommandSpec, command_specs, execute, find};
|
|
pub use materialcraft_geom::view::View3d;
|
|
pub use session::{CameraPrefs, Session, WARNING_PREFIX};
|
|
mod view3d_commands;
|
|
mod view3d_state_file;
|
|
pub use view3d_state_file::VIEW_STATE_EXTENSION;
|
|
mod view3d_update;
|
|
mod viewpoint;
|
|
pub use viewpoint::Viewpoint;
|
|
mod histogram_channel;
|
|
mod view2d;
|
|
pub use histogram_channel::HistogramChannel;
|
|
pub use view2d::View2d;
|
|
mod clip;
|
|
mod color_space;
|
|
mod connection_commands;
|
|
mod export_request;
|
|
mod export_size;
|
|
mod library_preview;
|
|
pub use clip::Clip;
|
|
pub use color_space::ColorSpace;
|
|
pub use export_request::ExportRequest;
|
|
pub use export_size::ExportSize;
|
|
|
|
pub use craft_texture as image;
|
|
pub use materialcraft_core as core;
|
|
pub use materialcraft_eval as eval;
|
|
pub use materialcraft_formats as formats;
|
|
pub use materialcraft_geom as geom;
|
|
pub use materialcraft_nodes as nodes;
|
|
|
|
mod engine_error;
|
|
pub use engine_error::EngineError;
|
|
|
|
pub type Result<T> = std::result::Result<T, EngineError>;
|
|
|
|
/// Version string shown in About, `--version` and window titles
|
|
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
|
|
|
mod startup;
|
|
pub use startup::{new_session, sample_session};
|
|
|
|
mod atomic_sample;
|
|
mod atomic_sample_commands;
|
|
pub use atomic_sample::atomic_sample;
|
|
|
|
mod material_options;
|
|
pub use material_options::MaterialOptions;
|
|
|
|
mod exported;
|
|
pub use exported::Exported;
|
|
|
|
mod annotation_commands;
|
|
mod annotation_selection;
|
|
mod annotation_target;
|
|
pub use annotation_target::AnnotationTarget;
|
|
mod comment_commands;
|
|
mod frame_commands;
|
|
mod frame_contents;
|
|
mod function_commands;
|
|
mod node_graph_commands;
|
|
mod pattern_graph_commands;
|
|
mod pin_commands;
|
|
mod snapshot;
|
|
pub use annotation_selection::AnnotationSelection;
|
|
pub use frame_contents::FrameContents;
|
|
|
|
mod embedded_edit_commands;
|
|
mod embedded_wire_commands;
|
|
mod function_edit;
|
|
mod function_graph_target;
|
|
mod function_info_commands;
|
|
pub mod function_inspection;
|
|
pub mod function_output;
|
|
mod parameter_function_commands;
|
|
mod parameter_target;
|
|
mod pattern_edit;
|
|
pub use function_edit::FunctionEdit;
|
|
pub use function_graph_target::FunctionGraphTarget;
|
|
pub use pattern_edit::PatternEdit;
|
|
|
|
mod exposed_input_commands;
|