[Bf-extensions-cvs] [d6934b4a] master: Addon: BSurfaces: Added edit strokes mode
Spivak Vladimir cwolf3d
noreply at git.blender.org
Mon Oct 14 10:46:19 CEST 2019
Commit: d6934b4a5121b907c9f8d4157f632c677a9d57a9
Author: Spivak Vladimir (cwolf3d)
Date: Mon Oct 14 11:45:57 2019 +0300
Branches: master
https://developer.blender.org/rBAd6934b4a5121b907c9f8d4157f632c677a9d57a9
Addon: BSurfaces: Added edit strokes mode
===================================================================
M mesh_bsurfaces.py
===================================================================
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index fe18df32..8af6054c 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:
More information about the Bf-extensions-cvs
mailing list