BGE: Fix T33564: UI obstacle panel disable for character and no collision objects.

This commit is contained in:
Porteries Tristan
2015-08-10 17:24:19 +02:00
parent 7b467a6fea
commit 8f837e0ac5

View File

@@ -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