picker on visible

This commit is contained in:
Pullusb
2021-07-29 11:20:43 +02:00
parent a218aefd10
commit 985e395beb
3 changed files with 30 additions and 12 deletions
+2 -2
View File
@@ -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)