Fix T68610: B-Bone display size/scaling op issues

Fix ReDo and create a new operator to display only the required properties.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D6849
This commit is contained in:
mano-wii
2020-02-14 11:51:29 -03:00
parent 38e06b19f6
commit ef4505a158
3 changed files with 44 additions and 13 deletions

View File

@@ -3468,7 +3468,7 @@ def km_pose(params):
("armature.layers_show_all", {"type": 'ACCENT_GRAVE', "value": 'PRESS', "ctrl": True}, None),
("armature.armature_layers", {"type": 'M', "value": 'PRESS', "shift": True}, None),
("pose.bone_layers", {"type": 'M', "value": 'PRESS'}, None),
("transform.transform", {"type": 'S', "value": 'PRESS', "ctrl": True, "alt": True},
("transform.bbone_resize", {"type": 'S', "value": 'PRESS', "ctrl": True, "alt": True},
{"properties": [("mode", 'BONE_SIZE')]}),
("anim.keyframe_insert_menu", {"type": 'I', "value": 'PRESS'}, None),
("anim.keyframe_delete_v3d", {"type": 'I', "value": 'PRESS', "alt": True}, None),
@@ -4187,7 +4187,7 @@ def km_armature(params):
("armature.armature_layers", {"type": 'M', "value": 'PRESS', "shift": True}, None),
("armature.bone_layers", {"type": 'M', "value": 'PRESS'}, None),
# Special transforms.
("transform.transform", {"type": 'S', "value": 'PRESS', "ctrl": True, "alt": True},
("transform.bbone_resize", {"type": 'S', "value": 'PRESS', "ctrl": True, "alt": True},
{"properties": [("mode", 'BONE_SIZE')]}),
("transform.transform", {"type": 'S', "value": 'PRESS', "alt": True},
{"properties": [("mode", 'BONE_ENVELOPE')]}),
@@ -5404,7 +5404,7 @@ def km_3d_view_tool_edit_armature_bone_size(params):
"3D View Tool: Edit Armature, Bone Size",
{"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
{"items": [
("transform.transform", {"type": params.tool_tweak, "value": 'ANY'},
("transform.bbone_resize", {"type": params.tool_tweak, "value": 'ANY'},
{"properties": [("release_confirm", True), ("mode", 'BONE_SIZE')]}),
]},
)