[Bf-blender-cvs] [8f837e0] master: BGE: Fix T33564: UI obstacle panel disable for character and no collision objects.
Porteries Tristan
noreply at git.blender.org
Mon Aug 10 17:32:14 CEST 2015
Commit: 8f837e0ac586fb010c7c6133ddbdc09546f7f851
Author: Porteries Tristan
Date: Mon Aug 10 17:24:19 2015 +0200
Branches: master
https://developer.blender.org/rB8f837e0ac586fb010c7c6133ddbdc09546f7f851
BGE: Fix T33564: UI obstacle panel disable for character and no collision objects.
===================================================================
M release/scripts/startup/bl_ui/properties_game.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_game.py b/release/scripts/startup/bl_ui/properties_game.py
index fa57bf2..56cd4d0 100644
--- a/release/scripts/startup/bl_ui/properties_game.py
+++ b/release/scripts/startup/bl_ui/properties_game.py
@@ -247,7 +247,7 @@ class PHYSICS_PT_game_obstacles(PhysicsButtonsPanel, Panel):
game = context.object.game
rd = context.scene.render
return (rd.engine in cls.COMPAT_ENGINES) \
- and (game.physics_type in {'SENSOR', 'STATIC', 'DYNAMIC', 'RIGID_BODY', 'SOFT_BODY'})
+ and (game.physics_type in {'SENSOR', 'STATIC', 'DYNAMIC', 'RIGID_BODY', 'SOFT_BODY', 'CHARACTER', 'NO_COLLISION'})
def draw_header(self, context):
game = context.active_object.game
More information about the Bf-blender-cvs
mailing list