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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-06 09:45:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-06 09:45:06 +0400
commit226d3a87d28ad4327ace3dd2b6602b904fda5449 (patch)
treec1fb3f7deff24be315c31c77829479199ba72099 /release
parent1352803506e852c28e4f44b9b7fb9eeffae4389f (diff)
Object Menu Edits:
- add quick effects to object menu, these are too useful to hide in search menu. - set/clear track/parent - expand the operators enums in submenus - no advantage in having a further popup after clicking on the menu item. - move 'Join UVs' into Make links menu which is currently being abused to store some copy functions. Do this because the 'Object' menu is getting too big.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py26
1 files changed, 21 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index f9e42862b9c..9b93fd18bac 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -721,11 +721,14 @@ class VIEW3D_MT_object(Menu):
layout.separator()
+ layout.menu("VIEW3D_MT_object_quick_effects")
+
+ layout.separator()
+
layout.menu("VIEW3D_MT_object_game")
layout.separator()
- layout.operator("object.join_uvs")
layout.operator("object.join")
layout.separator()
@@ -879,8 +882,8 @@ class VIEW3D_MT_object_parent(Menu):
def draw(self, context):
layout = self.layout
- layout.operator("object.parent_set", text="Set")
- layout.operator("object.parent_clear", text="Clear")
+ layout.operator_menu_enum("object.parent_set", "type", text="Set")
+ layout.operator_menu_enum("object.parent_clear", "type", text="Clear")
class VIEW3D_MT_object_track(Menu):
@@ -889,8 +892,8 @@ class VIEW3D_MT_object_track(Menu):
def draw(self, context):
layout = self.layout
- layout.operator("object.track_set", text="Set")
- layout.operator("object.track_clear", text="Clear")
+ layout.operator_menu_enum("object.track_set", "type", text="Set")
+ layout.operator_menu_enum("object.track_clear", "type", text="Clear")
class VIEW3D_MT_object_group(Menu):
@@ -919,6 +922,18 @@ class VIEW3D_MT_object_constraints(Menu):
layout.operator("object.constraints_clear")
+class VIEW3D_MT_object_quick_effects(Menu):
+ bl_label = "Quick Effects"
+
+ def draw(self, context):
+ layout = self.layout
+
+ layout.operator("object.quick_fur")
+ layout.operator("object.quick_explode")
+ layout.operator("object.quick_smoke")
+ layout.operator("object.quick_fluid")
+
+
class VIEW3D_MT_object_showhide(Menu):
bl_label = "Show/Hide"
@@ -968,6 +983,7 @@ class VIEW3D_MT_make_links(Menu):
layout.operator_enum("object.make_links_data", "type") # inline
+ layout.operator("object.join_uvs") # stupid place to add this!
class VIEW3D_MT_object_game(Menu):
bl_label = "Game"