[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60279] branches/soc-2013-rigid_body_sim/ source/blender/editors/space_view3d/drawobject.c: drawobject: Draw game engine collision bounds in edit mode

Sergej Reich sergej.reich at googlemail.com
Sat Sep 21 07:11:57 CEST 2013


Revision: 60279
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60279
Author:   sergof
Date:     2013-09-21 05:11:57 +0000 (Sat, 21 Sep 2013)
Log Message:
-----------
drawobject: Draw game engine collision bounds in edit mode

It's usefull to see how the collision shape will look like while editing
the mesh.
Also draw rigid body collision shape even if game engine bounds are
drawn.

Modified Paths:
--------------
    branches/soc-2013-rigid_body_sim/source/blender/editors/space_view3d/drawobject.c

Modified: branches/soc-2013-rigid_body_sim/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- branches/soc-2013-rigid_body_sim/source/blender/editors/space_view3d/drawobject.c	2013-09-21 05:11:56 UTC (rev 60278)
+++ branches/soc-2013-rigid_body_sim/source/blender/editors/space_view3d/drawobject.c	2013-09-21 05:11:57 UTC (rev 60279)
@@ -7167,14 +7167,14 @@
 			}
 		}
 
-		if ((ob->gameflag & OB_BOUNDS) && (ob->mode == OB_MODE_OBJECT)) {
+		if (ob->gameflag & OB_BOUNDS) {
 			if (ob->boundtype != ob->collision_boundtype || (dtx & OB_DRAWBOUNDOX) == 0) {
 				setlinestyle(2);
 				draw_bounding_volume(scene, ob, ob->collision_boundtype);
 				setlinestyle(0);
 			}
 		}
-		else if (ob->rigidbody_object) {
+		if (ob->rigidbody_object) {
 			draw_rigidbody_shape(ob);
 		}
 




More information about the Bf-blender-cvs mailing list