[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34686] trunk/blender/release/scripts/ui/ properties_game.py: add access to radius for game objects ( static objects can have radius) as well as anisotropic friction.

Campbell Barton ideasman42 at gmail.com
Mon Feb 7 12:42:49 CET 2011


Revision: 34686
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34686
Author:   campbellbarton
Date:     2011-02-07 11:42:49 +0000 (Mon, 07 Feb 2011)
Log Message:
-----------
add access to radius for game objects (static objects can have radius) as well as anisotropic friction.

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

Modified: trunk/blender/release/scripts/ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_game.py	2011-02-07 11:38:57 UTC (rev 34685)
+++ trunk/blender/release/scripts/ui/properties_game.py	2011-02-07 11:42:49 UTC (rev 34686)
@@ -72,7 +72,6 @@
 
             col = split.column()
             sub = col.column()
-            sub.active = (game.physics_type == 'RIGID_BODY')
             sub.prop(game, "use_anisotropic_friction")
             subsub = sub.column()
             subsub.active = game.use_anisotropic_friction
@@ -149,6 +148,22 @@
             col.prop(game, "use_ghost")
             col.prop(ob, "hide_render", text="Invisible")
 
+            layout.separator()
+
+            split = layout.split()
+
+            col = split.column()
+            col.label(text="Attributes:")
+            col.prop(game, "radius")
+
+            col = split.column()
+            sub = col.column()
+            sub.prop(game, "use_anisotropic_friction")
+            subsub = sub.column()
+            subsub.active = game.use_anisotropic_friction
+            subsub.prop(game, "friction_coefficients", text="", slider=True)
+
+
         elif game.physics_type in ('SENSOR', 'INVISIBLE', 'NO_COLLISION', 'OCCLUDE'):
             layout.prop(ob, "hide_render", text="Invisible")
 




More information about the Bf-blender-cvs mailing list