Brushstroke Tools: Initial Version #328
@ -339,6 +339,10 @@ class BSBST_OT_duplicate_brushstrokes(bpy.types.Operator):
|
|||||||
if not bs_ob:
|
if not bs_ob:
|
||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
|
|
||||||
|
if not bs_ob.visible_get(view_layer=context.view_layer):
|
||||||
|
self.report({"WARNING"}, f"Skipped Brushstroke layer '{bs_ob.name}' because it is invisible in this context")
|
||||||
|
return {"CANCELLED"}
|
||||||
|
|
||||||
flow_object = utils.get_flow_object(bs_ob)
|
flow_object = utils.get_flow_object(bs_ob)
|
||||||
|
|
||||||
if context.mode != 'OBJECT':
|
if context.mode != 'OBJECT':
|
||||||
@ -418,6 +422,9 @@ class BSBST_OT_copy_brushstrokes(bpy.types.Operator):
|
|||||||
for ob in bpy.data.objects:
|
for ob in bpy.data.objects:
|
||||||
ob.select_set(False)
|
ob.select_set(False)
|
||||||
for bs_ob in bs_objects:
|
for bs_ob in bs_objects:
|
||||||
|
if not bs_ob.visible_get(view_layer=context.view_layer):
|
||||||
|
self.report({"WARNING"}, f"Skipped Brushstroke layer '{bs_ob.name}' because it is invisible in this context")
|
||||||
|
continue
|
||||||
bs_ob.select_set(True)
|
bs_ob.select_set(True)
|
||||||
flow_object = utils.get_flow_object(bs_ob)
|
flow_object = utils.get_flow_object(bs_ob)
|
||||||
if not flow_object:
|
if not flow_object:
|
||||||
|
Loading…
Reference in New Issue
Block a user