picker on visible
This commit is contained in:
@@ -77,7 +77,7 @@ class GP_OT_pick_closest_material(Operator):
|
||||
|
||||
if self.gp.use_multiedit:
|
||||
for l in self.gp.layers:
|
||||
if l.lock or l.hide:
|
||||
if l.hide:# l.lock or
|
||||
continue
|
||||
for f in l.frames:
|
||||
if not f.select:
|
||||
@@ -88,7 +88,7 @@ class GP_OT_pick_closest_material(Operator):
|
||||
else:
|
||||
# [s for l in self.gp.layers if not l.lock and not l.hide for s in l.active_frame.stokes]
|
||||
for l in self.gp.layers:
|
||||
if l.lock or l.hide or not l.active_frame:
|
||||
if l.hide or not l.active_frame:# l.lock or
|
||||
continue
|
||||
for s in l.active_frame.strokes:
|
||||
self.stroke_list.append(s)
|
||||
|
||||
Reference in New Issue
Block a user