Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Integration: #7968 #7262 groupLayers From uses the optional layer ref

aiongg95db2fe5eb13
diff --git a/crates/engine/src/atn_cmds.rs b/crates/engine/src/atn_cmds.rs
index 3b974a34a..ba2ad90fb 100644
--- a/crates/engine/src/atn_cmds.rs
+++ b/crates/engine/src/atn_cmds.rs
@@ -1324,7 +1324,7 @@ fn make_to(id: &str, p: &Value) -> Option<Descriptor> {
"layer.groupLayers" => {
// An explicit source layer goes in by name like every other layer reference; a
// step without one keeps the target-layer form (#7236).
- desc("null").with("null", class_ref("layerSection")).with("From", layer_ref(p)).with("Usng", D::Descriptor(with_name("layerSection")))
+ desc("null").with("null", class_ref("layerSection")).with("From", layer_ref(p)?).with("Usng", D::Descriptor(with_name("layerSection")))
}
"layer.new.layerViaCopy" | "layer.new.layerViaCut" => {
let mut d = desc("null").with("Nw ", D::Descriptor(desc("Lyr "))).with("Usng", enm("ArSl", "Slct"));