Accidentally made the game collision bounds panel display itself when Blender Render...
authorWilliam Reynish <william@reynish.com>
Thu, 13 Aug 2009 09:30:36 +0000 (09:30 +0000)
committerWilliam Reynish <william@reynish.com>
Thu, 13 Aug 2009 09:30:36 +0000 (09:30 +0000)
release/ui/buttons_game.py

index 6d53b6a532782217601eec41f13710999af567e0..fbf1ff825348676f62430dbf7795b3302c9d6ca8 100644 (file)
@@ -143,7 +143,8 @@ class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel):
        def poll(self, context):
                ob = context.active_object
                game = ob.game
-               return (game.physics_type in ('DYNAMIC', 'RIGID_BODY', 'SENSOR', 'SOFT_BODY', 'STATIC'))
+               rd = context.scene.render_data
+               return (game.physics_type in ('DYNAMIC', 'RIGID_BODY', 'SENSOR', 'SOFT_BODY', 'STATIC')) and (rd.engine == 'BLENDER_GAME')
 
        def draw_header(self, context):
                layout = self.layout