From 047afaaa3b75073f928bb08e3559d4dbb603add1 Mon Sep 17 00:00:00 2001 From: rmsff <17902130+rmsff@users.noreply.github.com> Date: Fri, 13 Nov 2026 16:30:19 +0300 Subject: [PATCH] Contact Sheet II: end a flattened sheet as a normal layer named Contact Sheet II --- crates/engine/src/cmd/automate_cmds.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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); }