Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2017-03-19 07:27:10 +0300
committermeta-androcto <meta.androcto1@gmail.com>2017-03-19 07:27:10 +0300
commite702810f3734d8f35b29843cfb44956f125d0da7 (patch)
tree043423880fc9d1aff39ac55cf0eb0144780980ee /space_view3d_pie_menus/pie_apply_transform_menu.py
parent6e2403042b62356691894c6fa671f7233e93d399 (diff)
Update 3d Viewport pie menus: T50732
Diffstat (limited to 'space_view3d_pie_menus/pie_apply_transform_menu.py')
-rw-r--r--space_view3d_pie_menus/pie_apply_transform_menu.py33
1 files changed, 3 insertions, 30 deletions
diff --git a/space_view3d_pie_menus/pie_apply_transform_menu.py b/space_view3d_pie_menus/pie_apply_transform_menu.py
index a3f9e519..802de3d6 100644
--- a/space_view3d_pie_menus/pie_apply_transform_menu.py
+++ b/space_view3d_pie_menus/pie_apply_transform_menu.py
@@ -51,7 +51,7 @@ class PieApplyTransforms(Menu):
# 6 - RIGHT
pie.operator("clear.all", text="Clear All", icon='MANIPUL')
# 2 - BOTTOM
- pie.menu("applymore.menu", text="More")
+ pie.operator("object.duplicates_make_real", text="Make Duplicates Real")
# 8 - TOP
pie.operator("apply.transformrotation", text="Rotation", icon='MAN_ROT')
# 7 - TOP - LEFT
@@ -59,9 +59,9 @@ class PieApplyTransforms(Menu):
# 9 - TOP - RIGHT
pie.operator("apply.transformscale", text="Scale", icon='MAN_SCALE')
# 1 - BOTTOM - LEFT
- pie.operator("apply.transformrotationscale", text="Rotation/Scale")
+ pie.operator("object.visual_transform_apply", text="Visual Transforms")
# 3 - BOTTOM - RIGHT
- pie.menu("clear.menu", text="Clear Transforms")
+ pie.menu("clear.menu", text="Clear Transform Menu")
# Apply Transforms
@@ -102,22 +102,9 @@ class ApplyTransformScale(Operator):
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
return {'FINISHED'}
-# Apply Transforms
-
-
-class ApplyTransformRotationScale(Operator):
- bl_idname = "apply.transformrotationscale"
- bl_label = "Apply Transform Rotation Scale"
- bl_description = "Apply Transform Rotation Scale"
- bl_options = {'REGISTER', 'UNDO'}
-
- def execute(self, context):
- bpy.ops.object.transform_apply(location=False, rotation=True, scale=True)
- return {'FINISHED'}
# Apply Transforms
-
class ApplyTransformAll(Operator):
bl_idname = "apply.transformall"
bl_label = "Apply All Transforms"
@@ -128,18 +115,6 @@ class ApplyTransformAll(Operator):
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)
return {'FINISHED'}
-# More Menu
-
-
-class TransformApplyMore(Menu):
- bl_idname = "applymore.menu"
- bl_label = "More Menu"
-
- def draw(self, context):
- layout = self.layout
- layout.operator("object.visual_transform_apply", text="Visual Transforms")
- layout.operator("object.duplicates_make_real", text="Make Duplicates Real")
-
# Clear Menu
@@ -174,11 +149,9 @@ classes = (
ApplyTransformLocation,
ApplyTransformRotation,
ApplyTransformScale,
- ApplyTransformRotationScale,
ApplyTransformAll,
ClearMenu,
ClearAll,
- TransformApplyMore,
)
addon_keymaps = []