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 4e455179af - Show all commits

View File

@ -89,11 +89,12 @@ def set_active_context_brushstrokes_index(self, value):
self["active_context_brushstrokes_index"] = value
if prev == value:
return
bpy.ops.object.mode_set(mode='OBJECT')
bs_ob = bpy.data.objects.get(self.context_brushstrokes[value].name)
if not bs_ob:
return
bpy.context.view_layer.objects.active = bs_ob
if not bs_ob.hide_viewport:
bpy.ops.object.mode_set(mode='OBJECT')
for ob in bpy.data.objects:
ob.select_set(False)
if utils.is_brushstrokes_object(ob):