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 3bdea80fc8 - Show all commits

View File

@ -91,7 +91,8 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
edit_toggle = settings.edit_toggle
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)
flow_object = None