add intermediate stroke container - strokes to drawing.strokes

This commit is contained in:
pullusb
2024-11-11 17:48:11 +01:00
parent 4732110b93
commit 1dfb8cff9c
13 changed files with 56 additions and 56 deletions
+4 -4
View File
@@ -84,7 +84,7 @@ class GP_OT_pick_closest_material(Operator):
for f in l.frames:
if not f.select:
continue
for s in f.strokes:
for s in f.drawing.strokes:
self.stroke_list.append(s)
else:
@@ -92,7 +92,7 @@ class GP_OT_pick_closest_material(Operator):
for l in self.gp.layers:
if l.hide or not l.current_frame():# l.lock or
continue
for s in l.current_frame().strokes:
for s in l.current_frame().drawing.strokes:
self.stroke_list.append(s)
if self.fill_only:
@@ -240,7 +240,7 @@ class GP_OT_pick_closest_material(Operator):
for f in l.frames:
if not f.select:
continue
for s in f.strokes:
for s in f.drawing.strokes:
self.stroke_list.append(s)
else:
@@ -248,7 +248,7 @@ class GP_OT_pick_closest_material(Operator):
for l in gp.layers:
if l.hide or not l.current_frame():# l.lock or
continue
for s in l.current_frame().strokes:
for s in l.current_frame().drawing.strokes:
self.stroke_list.append(s)
if self.stroke_filter == 'FILL':