Fix the Artboard tool drawing the first artboard on an infinite canvas with layers present (#3356)

Improve creating the first artboard
This commit is contained in:
James Lindsay
2025-11-10 13:36:30 -08:00
committed by GitHub
parent 7f10a4258e
commit 4e65887b90
3 changed files with 53 additions and 5 deletions
+3 -2
View File
@@ -542,7 +542,8 @@ mod test {
} else if let Some(x) = dynamic.downcast_ref::<IORecord<Context, Input::Result>>() {
Some(x.output.clone())
} else {
panic!("cannot downcast type for introspection");
warn!("cannot downcast type for introspection");
None
}
}
@@ -557,7 +558,7 @@ mod test {
.iter()
.filter_map(|inputs| inputs.get(Input::INDEX))
.filter_map(|input_monitor_node| runtime.executor.introspect(input_monitor_node).ok())
.filter_map(Instrumented::downcast::<Input>)
.filter_map(Instrumented::downcast::<Input>) // Some might not resolve (e.g. generics that don't work properly)
}
pub fn grab_protonode_input<Input: NodeInputDecleration>(&self, path: &Vec<NodeId>, runtime: &NodeRuntime) -> Option<Input::Result>