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:
authorWilliam Reynish <william@reynish.com>2009-08-13 13:30:36 +0400
committerWilliam Reynish <william@reynish.com>2009-08-13 13:30:36 +0400
commit5a3bd23e8eb0edfa189ff073338195fd056af763 (patch)
treedddb6ae96c584eb2fef8d30ff626a4a7472d2207 /release
parentd916c25616b4f5038d9b17fb3eae9de377a2a9e5 (diff)
Accidentally made the game collision bounds panel display itself when Blender Render was selected as the renderer.
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_game.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/ui/buttons_game.py b/release/ui/buttons_game.py
index 6d53b6a5327..fbf1ff82534 100644
--- a/release/ui/buttons_game.py
+++ b/release/ui/buttons_game.py
@@ -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