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