Skip to content
Permalink
Browse files

Toolbar Editor - Change Apply all to Apply RotScale

  • Loading branch information...
ReinerBforartists committed Jul 1, 2017
1 parent 75d9a3d commit 6d7bf7baf55e247063760c735728ff9e50ac8120
Showing with 6 additions and 6 deletions.
  1. +5 −5 release/scripts/startup/bl_ui/space_toolbar.py
  2. +1 −1 release/scripts/startup/bl_ui/space_view3d.py
@@ -1246,14 +1246,14 @@ def execute(self, context):
bpy.ops.object.transform_apply(location=True, rotation=False, scale=True)
return {'FINISHED'}

class VIEW3D_MT_object_apply_all(bpy.types.Operator):
"""Apply All\nApplies the current location, rotation and scale"""
bl_idname = "3dview.tb_apply_all"
class VIEW3D_MT_object_apply_rotscale(bpy.types.Operator):
"""Apply Rotation & Scale\nApplies the current rotation and scale"""
bl_idname = "3dview.tb_apply_rotscale"
bl_label = "Apply All"
bl_options = {'REGISTER', 'UNDO'}

def execute(self, context):
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)
bpy.ops.object.transform_apply(location=False, rotation=True, scale=True)
return {'FINISHED'}

#################### Holds the Toolbars menu for Edit, collapsible
@@ -1365,7 +1365,7 @@ def draw_menus(layout, context):
row.operator("3dview.tb_apply_location", text="", icon = "APPLYMOVE") # needed a tooltip, so see above ...
row.operator("3dview.tb_apply_rotate", text="", icon = "APPLYROTATE")
row.operator("3dview.tb_apply_scale", text="", icon = "APPLYSCALE")
row.operator("3dview.tb_apply_all", text="", icon = "APPLYALL")
row.operator("3dview.tb_apply_rotscale", text="", icon = "APPLYALL")

row = layout.row(align=True)

@@ -1766,7 +1766,7 @@ def draw(self, context):

props = layout.operator("object.transform_apply", text="Scale", text_ctxt=i18n_contexts.default, icon = "APPLYSCALE")
props.location, props.rotation, props.scale = False, False, True
props = layout.operator("object.transform_apply", text="Rotation & Scale", text_ctxt=i18n_contexts.default)
props = layout.operator("object.transform_apply", text="Rotation & Scale", text_ctxt=i18n_contexts.default, icon = "APPLYALL")
props.location, props.rotation, props.scale = False, True, True

layout.separator()

0 comments on commit 6d7bf7b

Please sign in to comment.
You can’t perform that action at this time.