Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-07-24 08:58:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-07-24 08:58:30 +0300
commit2a186af2b3888f393144919b0c2440e8c77dbf05 (patch)
treedae1ab98fc23c785fb130ebc2d9323742ae80825
parentba99b1228736fc2d10e8ddfcb0aa7c59eb8e6329 (diff)
parent0e9999a93edd3c8d62688e03340d9687ca6ce953 (diff)
Merge branch 'blender-v2.90-release'
-rw-r--r--release/scripts/startup/bl_ui/properties_data_mesh.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index 27df265d013..77308fed014 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -346,9 +346,11 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
enable_edit = ob.mode != 'EDIT'
enable_edit_value = False
+ enable_pin = False
- if ob.show_only_shape_key is False:
- if enable_edit or (ob.type == 'MESH' and ob.use_shape_key_edit_mode):
+ if enable_edit or (ob.use_shape_key_edit_mode and ob.type == 'MESH'):
+ enable_pin = True
+ if ob.show_only_shape_key:
enable_edit_value = True
row = layout.row()
@@ -386,7 +388,7 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
sub = row.row(align=True)
sub.label() # XXX, for alignment only
subsub = sub.row(align=True)
- subsub.active = enable_edit_value
+ subsub.active = enable_pin
subsub.prop(ob, "show_only_shape_key", text="")
sub.prop(ob, "use_shape_key_edit_mode", text="")