Brushstroke Tools: Initial Version #328
@ -91,7 +91,8 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
|
|||||||
edit_toggle = settings.edit_toggle
|
edit_toggle = settings.edit_toggle
|
||||||
|
|
||||||
utils.ensure_resources()
|
utils.ensure_resources()
|
||||||
bpy.ops.object.mode_set(mode='OBJECT')
|
if not context.mode == 'OBJECT':
|
||||||
|
bpy.ops.object.mode_set(mode='OBJECT')
|
||||||
|
|
||||||
surface_object = utils.get_active_context_surface_object(context)
|
surface_object = utils.get_active_context_surface_object(context)
|
||||||
flow_object = None
|
flow_object = None
|
||||||
|
Loading…
Reference in New Issue
Block a user