From d6934b4a5121b907c9f8d4157f632c677a9d57a9 Mon Sep 17 00:00:00 2001 From: "Spivak Vladimir (cwolf3d)" <cwolf3d@gmail.com> Date: Mon, 14 Oct 2019 11:45:57 +0300 Subject: [PATCH] Addon: BSurfaces: Added edit strokes mode --- mesh_bsurfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py index fe18df320..8af6054cf 100644 --- a/mesh_bsurfaces.py +++ b/mesh_bsurfaces.py @@ -3752,8 +3752,8 @@ class GPENCIL_OT_SURFSK_edit_strokes(Operator): gpencil_object.select_set(True) bpy.context.view_layer.objects.active = gpencil_object - bpy.ops.object.mode_set('INVOKE_REGION_WIN', mode='PAINT_GPENCIL') - bpy.ops.wm.tool_set_by_id(name="builtin_brush.Draw") + bpy.ops.object.mode_set('INVOKE_REGION_WIN', mode='EDIT_GPENCIL') + bpy.ops.gpencil.select_all(action='SELECT') def invoke(self, context, event): try: -- GitLab