[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45656] trunk/blender/release/scripts/ startup/bl_ui/properties_game.py: BGE bug #30515: Sensor physics mode missing UI for use_actor option.

Benoit Bolsee benoit.bolsee at online.be
Sun Apr 15 13:47:08 CEST 2012


Revision: 45656
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45656
Author:   ben2610
Date:     2012-04-15 11:47:08 +0000 (Sun, 15 Apr 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_game.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2012-04-15 10:31:38 UTC (rev 45655)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2012-04-15 11:47:08 UTC (rev 45656)
@@ -166,7 +166,12 @@
             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':




More information about the Bf-blender-cvs mailing list