[Bf-blender-cvs] [9f1048481cd] master: Fix T53420: Vertex Groups: The "-" button gets a hidden function

Bastien Montagne noreply at git.blender.org
Wed Nov 29 20:20:42 CET 2017


Commit: 9f1048481cd0e9e16a0b2f119aead35b5733eaad
Author: Bastien Montagne
Date:   Wed Nov 29 20:19:07 2017 +0100
Branches: master
https://developer.blender.org/rB9f1048481cd0e9e16a0b2f119aead35b5733eaad

Fix T53420: Vertex Groups: The "-" button gets a hidden function

Guess 'remove all unlocked' is new-ish feature...

To be backported to 2.79a (I think).

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

M	release/scripts/startup/bl_ui/properties_data_mesh.py

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

diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index de55b4152ba..2ab9aa2e93f 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -206,7 +206,8 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
 
         col = row.column(align=True)
         col.operator("object.vertex_group_add", icon='ZOOMIN', text="")
-        col.operator("object.vertex_group_remove", icon='ZOOMOUT', text="").all = False
+        props = col.operator("object.vertex_group_remove", icon='ZOOMOUT', text="")
+        props.all_unlocked = props.all = False
         col.menu("MESH_MT_vertex_group_specials", icon='DOWNARROW_HLT', text="")
         if group:
             col.separator()



More information about the Bf-blender-cvs mailing list