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:
authorThomas Dinges <blender@dingto.org>2011-09-10 12:43:11 +0400
committerThomas Dinges <blender@dingto.org>2011-09-10 12:43:11 +0400
commit129452ebab3192415ab6329dd5c6acf438d2f18c (patch)
treed6d485b0e59626c8edd48c7ab6035ddb2d4024d4 /release
parente9c645c7274614a89215b85509267b0b1d3f8b75 (diff)
Recast & Detour UI:
* Panels showed up even if in non game engine mode, polls were missing!
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_game.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_game.py b/release/scripts/startup/bl_ui/properties_game.py
index 711b51a5d5f..b06876637f7 100644
--- a/release/scripts/startup/bl_ui/properties_game.py
+++ b/release/scripts/startup/bl_ui/properties_game.py
@@ -397,6 +397,11 @@ class SCENE_PT_game_navmesh(SceneButtonsPanel, bpy.types.Panel):
bl_label = "Navigation mesh"
bl_default_closed = True
COMPAT_ENGINES = {'BLENDER_GAME'}
+
+ @classmethod
+ def poll(cls, context):
+ scene = context.scene
+ return (scene and scene.render.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout
@@ -572,6 +577,11 @@ class WORLD_PT_game_physics(WorldButtonsPanel, Panel):
class WORLD_PT_game_physics_obstacles(WorldButtonsPanel, Panel):
bl_label = "Obstacle simulation"
COMPAT_ENGINES = {'BLENDER_GAME'}
+
+ @classmethod
+ def poll(cls, context):
+ scene = context.scene
+ return (scene.world and scene.render.engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout