active_frame attribute to current_frame method

This commit is contained in:
pullusb
2024-11-11 17:30:33 +01:00
parent 25adb5beb6
commit 998bd4b0cb
9 changed files with 29 additions and 29 deletions
+6 -6
View File
@@ -88,11 +88,11 @@ class GP_OT_pick_closest_material(Operator):
self.stroke_list.append(s)
else:
# [s for l in self.gp.layers if not l.lock and not l.hide for s in l.active_frame.stokes]
# [s for l in self.gp.layers if not l.lock and not l.hide for s in l.current_frame().stokes]
for l in self.gp.layers:
if l.hide or not l.active_frame:# l.lock or
if l.hide or not l.current_frame():# l.lock or
continue
for s in l.active_frame.strokes:
for s in l.current_frame().strokes:
self.stroke_list.append(s)
if self.fill_only:
@@ -244,11 +244,11 @@ class GP_OT_pick_closest_material(Operator):
self.stroke_list.append(s)
else:
# [s for l in gp.layers if not l.lock and not l.hide for s in l.active_frame.stokes]
# [s for l in gp.layers if not l.lock and not l.hide for s in l.current_frame().stokes]
for l in gp.layers:
if l.hide or not l.active_frame:# l.lock or
if l.hide or not l.current_frame():# l.lock or
continue
for s in l.active_frame.strokes:
for s in l.current_frame().strokes:
self.stroke_list.append(s)
if self.stroke_filter == 'FILL':