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:
authorDalai Felinto <dfelinto@gmail.com>2010-06-03 10:41:24 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-06-03 10:41:24 +0400
commit3b6aa5b6a588b76e1ed6f25f11ae77dd07ecfa46 (patch)
treec3d8db3662e557887a847c259b7f8f16d05766c9 /release
parentf5951ac2eacb0267d2411e6bd65c248555a5e032 (diff)
Logic Editor: clear properties operator + logics in the object menu
clear properties operator - now it's not part of the copy properties anymore (Matt's suggestion). If anyone want to change the menu, please help yourself (renaming, putting in it's own submenu, making it invisible when mode is not Game ..)
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/space_view3d.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py
index 4a3818eae73..ba2705331a9 100644
--- a/release/scripts/ui/space_view3d.py
+++ b/release/scripts/ui/space_view3d.py
@@ -675,7 +675,11 @@ class VIEW3D_MT_object(bpy.types.Menu):
layout.menu("VIEW3D_MT_object_track")
layout.menu("VIEW3D_MT_object_group")
layout.menu("VIEW3D_MT_object_constraints")
+
+ layout.separator()
+
layout.menu("VIEW3D_MT_object_game_properties")
+ layout.menu("VIEW3D_MT_object_game_logicbricks")
layout.separator()
@@ -853,8 +857,18 @@ class VIEW3D_MT_object_game_properties(bpy.types.Menu):
layout.operator("object.game_property_copy", text="Replace").operation="REPLACE"
layout.operator("object.game_property_copy", text="Merge").operation="MERGE"
- # layout.operator("object.game_property_copy").operation="CLEAR" doesn't really belong as part of copy...
layout.operator_menu_enum("object.game_property_copy", "property", text="Copy...")
+ layout.separator()
+ layout.operator("object.game_property_clear")
+
+
+class VIEW3D_MT_object_game_logicbricks(bpy.types.Menu):
+ bl_label = "Logic Bricks"
+
+ def draw(self, context):
+ layout = self.layout
+
+ layout.operator("object.logic_bricks_copy", text="Copy")
# ********** Vertex paint menu **********
@@ -2222,10 +2236,11 @@ classes = [
VIEW3D_MT_object_track,
VIEW3D_MT_object_group,
VIEW3D_MT_object_constraints,
- VIEW3D_MT_object_game_properties,
VIEW3D_MT_object_showhide,
VIEW3D_MT_make_single_user,
VIEW3D_MT_make_links,
+ VIEW3D_MT_object_game_properties,
+ VIEW3D_MT_object_game_logicbricks,
VIEW3D_MT_hook,
VIEW3D_MT_vertex_group,