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).
This commit is contained in:
Bastien Montagne 2017-02-03 16:10:00 +01:00
parent f3a7104adb
commit 52696a0d3f
Notes: blender-bot 2023-02-14 11:25:11 +01:00
Referenced by issue #50125, Shortcut keys missing in menus for Clear Location, Rotation, and Scale
1 changed files with 3 additions and 3 deletions

View File

@ -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")