BGE: Fix T33564: UI obstacle panel disable for character and no collision objects.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user