[Bf-blender-cvs] [52696a0d3f] master: Fix T50125: Shortcut keys missing in menus for Clear Location, Rotation, and Scale.
Bastien Montagne
noreply at git.blender.org
Fri Feb 3 16:11:00 CET 2017
Commit: 52696a0d3f8f31ce3a3d7ec1c10f7e72b556c2ef
Author: Bastien Montagne
Date: Fri Feb 3 16:10:00 2017 +0100
Branches: master
https://developer.blender.org/rB52696a0d3f8f31ce3a3d7ec1c10f7e72b556c2ef
Fix T50125: Shortcut keys missing in menus for Clear Location, Rotation, and Scale.
Menu entries and shortcuts did not have exact same behavior, now they do
(using shortcuts' behavior).
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 5e936076d0..1183d078a8 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1346,9 +1346,9 @@ class VIEW3D_MT_object_clear(Menu):
def draw(self, context):
layout = self.layout
- layout.operator("object.location_clear", text="Location")
- layout.operator("object.rotation_clear", text="Rotation")
- layout.operator("object.scale_clear", text="Scale")
+ layout.operator("object.location_clear", text="Location").clear_delta = False
+ layout.operator("object.rotation_clear", text="Rotation").clear_delta = False
+ layout.operator("object.scale_clear", text="Scale").clear_delta = False
layout.operator("object.origin_clear", text="Origin")
More information about the Bf-blender-cvs
mailing list