diff --git a/crates/engine/src/cmd/automate_cmds.rs b/crates/engine/src/cmd/automate_cmds.rs index bd3b7f74c3..425f51ce14 100644 --- a/crates/engine/src/cmd/automate_cmds.rs +++ b/crates/engine/src/cmd/automate_cmds.rs @@ -629,6 +629,14 @@ fn contact_sheet(s: &mut Session, p: &Value) -> Result { } if flatten { s.execute("layer.flattenImage", json!({}))?; + // The reference ends a flattened sheet with a normal layer, not a Background (#13702). + s.edit("Make Layer", |doc, active| { + let l = doc.background_mut().ok_or(EngineError::Other("the flattened sheet has no Background layer".into()))?; + crate::extra_cmds::unlock_background(l); + l.name = "Contact Sheet II".into(); + *active = Some(l.id); + Ok(()) + })?; } docs.push(idx); }