Skip to content

Commit 5d57a42

Browse files
committed
Reversed the order which modifiers are applied
This makes it so adding modifiers adds them earlier in the stack than existing ones, having the ones on top in the UI be applied later. This makes it consistent with how it usually works with layers in other applications, and is more comfortable to add more modifiers since it leads to fewer reordering.
1 parent 1cc4032 commit 5d57a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl Workspace {
283283
size: self.data.zoom,
284284
}];
285285

286-
self.modifiers.iter_mut().for_each(|x| {
286+
self.modifiers.iter_mut().rev().for_each(|x| {
287287
match x.get_image_operation(pdata, &self.data) {
288288
ModifierOperation::None => {}
289289
ModifierOperation::Single(o) => ops.push(o),

0 commit comments

Comments
 (0)