diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2012-04-15 15:47:08 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2012-04-15 15:47:08 +0400 |
commit | 5f0c43d2c2835554ab6f6dc6bafd4ca760996427 (patch) | |
tree | 2c3c42c4952133d5f4be6fc5e6853511d7dce8ae /release/scripts/startup/bl_ui/properties_game.py | |
parent | c96be5c5f96b6bc959d1fe8a1d211b90d508f065 (diff) |
BGE bug #30515: Sensor physics mode missing UI for use_actor option. This option tells whether the sensor object is only affected by objects that have the Actor option on or any object. The option was missing from the UI.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_game.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_game.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_game.py b/release/scripts/startup/bl_ui/properties_game.py index cc3e8a8e57d..36941cdfbbf 100644 --- a/release/scripts/startup/bl_ui/properties_game.py +++ b/release/scripts/startup/bl_ui/properties_game.py @@ -166,7 +166,12 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel): subsub.active = game.use_anisotropic_friction subsub.prop(game, "friction_coefficients", text="", slider=True) - elif physics_type in {'SENSOR', 'INVISIBLE', 'NO_COLLISION', 'OCCLUDE'}: + elif physics_type =='SENSOR': + col = layout.column() + col.prop(game, "use_actor", text="Detect Actors") + col.prop(ob, "hide_render", text="Invisible") + + elif physics_type in {'INVISIBLE', 'NO_COLLISION', 'OCCLUDE'}: layout.prop(ob, "hide_render", text="Invisible") elif physics_type == 'NAVMESH': |