Skip to content

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

Integration: #7262 Clipping Mask export refuses a numeric layer reference, as the other layer events do

aiongg624b7ebaf784
diff --git a/crates/engine/src/atn_cmds.rs b/crates/engine/src/atn_cmds.rs
index a54d69bca..6415c51a2 100644
--- a/crates/engine/src/atn_cmds.rs
+++ b/crates/engine/src/atn_cmds.rs
@@ -3090,7 +3090,7 @@ fn clipping_from(d: &Descriptor, id: &str) -> Mapped {
}
fn clipping_to(_: &str, p: &Value) -> Option<Descriptor> {
- Some(desc("null").with("null", layer_ref(p)))
+ Some(desc("null").with("null", layer_ref(p)?))
}
/// A clipping mask event: `clipping_from` / `clipping_to` with one command id.