[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54342] trunk/blender/release/scripts/ startup/bl_operators/rigidbody.py: rigidbody: Use ARROWS empty draw type when creating constraints

Sergej Reich sergej.reich at googlemail.com
Tue Feb 5 22:51:20 CET 2013


Revision: 54342
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54342
Author:   sergof
Date:     2013-02-05 21:51:20 +0000 (Tue, 05 Feb 2013)
Log Message:
-----------
rigidbody: Use ARROWS empty draw type when creating constraints

Since we don't have constraint visualization yet, it's useful to see
where the individual axes point.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/rigidbody.py

Modified: trunk/blender/release/scripts/startup/bl_operators/rigidbody.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/rigidbody.py	2013-02-05 21:51:18 UTC (rev 54341)
+++ trunk/blender/release/scripts/startup/bl_operators/rigidbody.py	2013-02-05 21:51:20 UTC (rev 54342)
@@ -234,7 +234,9 @@
                 loc = (obj_act.location + obj.location) / 2.0
             bpy.ops.object.add(type='EMPTY', view_align=False, enter_editmode=False, location=loc)
             bpy.ops.rigidbody.constraint_add()
-            con = context.active_object.rigid_body_constraint
+            con_obj = context.active_object
+            con_obj.empty_draw_type = 'ARROWS'
+            con = con_obj.rigid_body_constraint
             con.type = self.con_type
             con.object1 = obj_act
             con.object2 = obj




More information about the Bf-blender-cvs mailing list