diff options
author | Matt Ebb <matt@mke3.net> | 2010-05-25 10:24:45 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-05-25 10:24:45 +0400 |
commit | e26cc71bd0a4976c8adf8f6586a71de7ce1003d4 (patch) | |
tree | a96ed224505e4ee0e11b65fe1432e3f7a3d21717 /release/scripts/ui/space_view3d.py | |
parent | c9ac1cc9862730f6e20563fc034d825c9a6aff04 (diff) |
Tweaks to copy game properties operator for Dalai
Diffstat (limited to 'release/scripts/ui/space_view3d.py')
-rw-r--r-- | release/scripts/ui/space_view3d.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py index 538a13536bc..8f44d00581f 100644 --- a/release/scripts/ui/space_view3d.py +++ b/release/scripts/ui/space_view3d.py @@ -675,6 +675,7 @@ 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.menu("VIEW3D_MT_object_game_properties") layout.separator() @@ -843,6 +844,17 @@ class VIEW3D_MT_make_links(bpy.types.Menu): layout.operator_enums("object.make_links_data", "type") # inline +class VIEW3D_MT_object_game_properties(bpy.types.Menu): + bl_label = "Game Properties" + + def draw(self, context): + layout = self.layout + + 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...") + # ********** Vertex paint menu ********** @@ -2208,6 +2220,7 @@ 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, |