Brushstroke Tools: Initial Version #328
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user