LR-MASK-BRUSH: separate brush subtraction from erasing (#516)

This commit is contained in:
Elliot Graham
2026-10-09 15:32:04 +01:00
parent 65ad290e89
commit a6d092ceb0
6 changed files with 128 additions and 13 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ pub fn specs() -> Vec<CommandSpec> {
}
};
let m = &mut masks[i];
if let Some(MaskComponent { name: None, shape: MaskShape::Brush { strokes }, .. }) =
if let Some(MaskComponent { shape: MaskShape::Brush { strokes }, .. }) =
m.components.iter_mut().rev().find(|c| matches!(c.shape, MaskShape::Brush { .. }))
{
strokes.push(stroke);