Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
Showing only changes of commit 8d4053f375 - Show all commits

View File

@ -339,6 +339,10 @@ class BSBST_OT_duplicate_brushstrokes(bpy.types.Operator):
if not bs_ob:
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)
if context.mode != 'OBJECT':
@ -418,6 +422,9 @@ class BSBST_OT_copy_brushstrokes(bpy.types.Operator):
for ob in bpy.data.objects:
ob.select_set(False)
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)
flow_object = utils.get_flow_object(bs_ob)
if not flow_object: