mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 18:11:38 +02:00
🐛 Fix new render masks
This commit is contained in:
parent
91fbe8f8ef
commit
1f44d53f6b
4 changed files with 109 additions and 13 deletions
|
@ -635,12 +635,17 @@ impl Shape {
|
|||
IndexSet::<Uuid>::new()
|
||||
} else if let Type::Group(group) = self.shape_type {
|
||||
if group.masked {
|
||||
self.children.iter().skip(1).cloned().collect()
|
||||
self.children
|
||||
.iter()
|
||||
.rev()
|
||||
.take(self.children.len() - 1)
|
||||
.cloned()
|
||||
.collect()
|
||||
} else {
|
||||
self.children.clone().into_iter().collect()
|
||||
self.children.clone().into_iter().rev().collect()
|
||||
}
|
||||
} else {
|
||||
self.children.clone().into_iter().collect()
|
||||
self.children.clone().into_iter().rev().collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue