Brushstroke Tools: Initial Version #328
@ -280,6 +280,7 @@ class BSBST_OT_delete_brushstrokes(bpy.types.Operator):
|
|||||||
surface_object = utils.get_surface_object(bs_ob)
|
surface_object = utils.get_surface_object(bs_ob)
|
||||||
flow_object = utils.get_flow_object(bs_ob)
|
flow_object = utils.get_flow_object(bs_ob)
|
||||||
|
|
||||||
|
if context.active_object:
|
||||||
bpy.ops.object.mode_set(mode='OBJECT')
|
bpy.ops.object.mode_set(mode='OBJECT')
|
||||||
bpy.data.objects.remove(bs_ob)
|
bpy.data.objects.remove(bs_ob)
|
||||||
settings.active_context_brushstrokes_index = max(0, settings.active_context_brushstrokes_index-1)
|
settings.active_context_brushstrokes_index = max(0, settings.active_context_brushstrokes_index-1)
|
||||||
|
Loading…
Reference in New Issue
Block a user