[Bf-extensions-cvs] [4bdc53e6] master: mesh_tools: fix selection modes

meta-androcto noreply at git.blender.org
Sat Jun 1 06:47:13 CEST 2019


Commit: 4bdc53e6df08419317745cffcdd37b53fa493f8f
Author: meta-androcto
Date:   Sat Jun 1 14:45:31 2019 +1000
Branches: master
https://developer.blender.org/rBAC4bdc53e6df08419317745cffcdd37b53fa493f8f

mesh_tools: fix selection modes

===================================================================

M	mesh_tools/__init__.py

===================================================================

diff --git a/mesh_tools/__init__.py b/mesh_tools/__init__.py
index d9ab8151..fcadcfb7 100644
--- a/mesh_tools/__init__.py
+++ b/mesh_tools/__init__.py
@@ -801,6 +801,7 @@ class VIEW3D_OT_multieditvertedge(Operator):
             bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT')
         if bpy.ops.mesh.select_mode != "VERT, EDGE, FACE":
+            bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT')
             bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='EDGE')
             return {'FINISHED'}
@@ -816,6 +817,7 @@ class VIEW3D_OT_multieditvertface(Operator):
             bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT')
         if bpy.ops.mesh.select_mode != "VERT, EDGE, FACE":
+            bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT')
             bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='FACE')
             return {'FINISHED'}
@@ -832,6 +834,7 @@ class VIEW3D_OT_multieditedgeface(Operator):
             bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='EDGE')
         if bpy.ops.mesh.select_mode != "VERT, EDGE, FACE":
+            bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='EDGE')
             bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='FACE')
             return {'FINISHED'}
@@ -848,6 +851,7 @@ class VIEW3D_OT_multieditall(Operator):
             bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT')
         if bpy.ops.mesh.select_mode != "VERT, EDGE, FACE":
+            bpy.ops.object.mode_set(mode="EDIT")
             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT')
             bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='EDGE')
             bpy.ops.mesh.select_mode(use_extend=True, use_expand=False, type='FACE')



More information about the Bf-extensions-cvs mailing list