mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-28 17:19:17 +01:00
Preserve assigned integer storage across pattern seed properties
This commit is contained in:
1 parent
964da5968f
commit
a4c792859c
12 files changed
+145
-7
No files matched your search
@@ -31,6 +31,7 @@ pub(crate) fn resolve_parameters(
|
||||
variables: &mut std::borrow::Cow<'_, BTreeMap<String, Value>>,
|
||||
base: ResolvedBaseParameters,
|
||||
literal_inputs: &[String],
|
||||
mut assigned_integers: Option<&mut Vec<String>>,
|
||||
) -> Result<ResolvedParameters, String> {
|
||||
let mut parameters = match definition {
|
||||
Some(definition) if node.def != "graph_instance" => resolve_params(definition, &node.params),
|
||||
@@ -102,7 +103,7 @@ pub(crate) fn resolve_parameters(
|
||||
if program.reads_graph_parameter(variables) {
|
||||
record_drawing_input(parameter);
|
||||
}
|
||||
crate::parameter_function::evaluate(&program, expected, variables.to_mut(), base.size, mode, Some(current))
|
||||
crate::parameter_function::evaluate(&program, expected, variables.to_mut(), base.size, mode, Some(current), assigned_integers.as_deref_mut())
|
||||
})
|
||||
.map_err(|error| format!("function of `{parameter}`: {error}"))?;
|
||||
if matches!(mode, ParameterMode::UniformColor) {
|
||||
|
||||
Reference in new issue
Block a user