M3.6: opacity-mask editing mode — click the mask thumbnail to edit the mask art on a temporary isolated layer with any tool; the mask updates live after every edit; the object thumbnail (or transparency.stopEditingOpacityMask) leaves the mode

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-02 08:40:18 -04:00
co-authored by Claude Opus 5.5
parent 5026dad446
commit dcc5a006a2
7 changed files with 208 additions and 9 deletions
+3 -1
View File
@@ -293,7 +293,9 @@ impl Renderer {
ctx.push_clip_layer(&clip);
}
if !self.draw_pattern_edit(&mut ctx, &frame) {
for layer in &doc.layers {
// While editing an opacity mask its art is seen only through the mask (Illustrator).
let mask_layer = doc.mask_edit.map(|m| m.layer);
for layer in doc.layers.iter().filter(|l| Some(l.id) != mask_layer) {
self.draw_arc(&mut ctx, &frame, layer);
}
}