mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-29 09:34:20 +01:00
fix(engine): only raw stroke pieces keep a raw fill bare on a stroke change (M8)
This commit is contained in:
1 parent
c9edbddb1d
commit
0c3ceaff8f
1 file changed
+1
-1
@@ -476,7 +476,7 @@ pub(crate) fn set_stroke(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
// A raw drawing's outline is its own stroke pieces (ADR 0042). When the selection holds
|
||||
// strokes for the change, its raw fills take none of their own, which would draw the outline
|
||||
// a second time over the pieces (#389).
|
||||
let strokes_selected = shapes.iter().any(|sh| sh.stroke.is_some());
|
||||
let strokes_selected = shapes.iter().any(|sh| sh.merge && sh.stroke.is_some());
|
||||
for sh in shapes {
|
||||
if remove {
|
||||
sh.stroke = None;
|
||||
|
||||
Reference in new issue
Block a user