mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-19 02:10:49 -05:00
fmt
This commit is contained in:
1 parent
b721f219c5
commit
04e9904cc4
1 file changed
+1
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user