active_frame attribute to current_frame method
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user