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,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)