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 36c3bdc094 - Show all commits

View File

@ -240,7 +240,7 @@ def edit_active_brushstrokes(context):
# enter mode and tool context # enter mode and tool context
if active_object.type=='GREASEPENCIL': if active_object.type=='GREASEPENCIL':
bpy.ops.object.mode_set(mode='PAINT_GREASE_PENCIL') bpy.ops.object.mode_set(mode='PAINT_GPENCIL')
bpy.ops.wm.tool_set_by_id(name="builtin.draw") bpy.ops.wm.tool_set_by_id(name="builtin.draw")
context.scene.tool_settings.gpencil_stroke_placement_view3d = 'SURFACE' context.scene.tool_settings.gpencil_stroke_placement_view3d = 'SURFACE'
else: else: