diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 11:09:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 11:09:02 +0400 |
commit | 0a415b6e7179f2bf734b216746035bc9af559a1d (patch) | |
tree | 2c07c583e2e750ef93d2c0570cd96f0ea1bb6409 /release/scripts | |
parent | 08a914095e75ee7b45b7f188e0db9f87c10b480c (diff) |
replace OBJECT_OT_location_apply, OBJECT_OT_scale_apply, OBJECT_OT_rotation_apply with OBJECT_OT_transform_apply with 3 boolean options.
added back menu item from 2.4x to apply Rotation & Scale.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 2eaac42cf35..7d31bc39b0a 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -851,10 +851,15 @@ class VIEW3D_MT_object_apply(bpy.types.Menu): def draw(self, context): layout = self.layout - layout.operator("object.location_apply", text="Location") - layout.operator("object.rotation_apply", text="Rotation") - layout.operator("object.scale_apply", text="Scale") + layout.operator("object.transform_apply", text="Location").location = True + layout.operator("object.transform_apply", text="Rotation").rotation = True + layout.operator("object.transform_apply", text="Scale").scale = True + props = layout.operator("object.transform_apply", text="Rotation & Scale") + props.scale = True + props.rotation = True + layout.separator() + layout.operator("object.visual_transform_apply", text="Visual Transform") layout.operator("object.duplicates_make_real") |