This commit is contained in:
Tanish Manku committed 2026-10-15 12:35:22 -07:00
1 parent b721f219c5
commit 04e9904cc4
1 file changed
+1 -2
+1 -2
View File
@@ -1317,8 +1317,7 @@ fn merge_layers(s: &mut Session) -> Result<Value> {
// layers of different chains don't: the result, at the top one's slot, would clip the
// lower chain's pixels to the upper chain's base.
let base = crate::clip_group::base_of(doc, top_id);
merged.clipped = base.is_some()
&& solo.layers.iter().all(|l| l.clipped && crate::clip_group::base_of(doc, l.id) == base);
merged.clipped = base.is_some() && solo.layers.iter().all(|l| l.clipped && crate::clip_group::base_of(doc, l.id) == base);
*crate::pixels_mut(&mut merged)? = crate::pixels::composite_layers_uncropped(&solo, fmt);
let mid = merged.id;
// Hidden selected layers are discarded, as in Photoshop.