Missed this in last commit
authorSergej Reich <sergej.reich@googlemail.com>
Wed, 25 Dec 2013 18:25:46 +0000 (19:25 +0100)
committerSergej Reich <sergej.reich@googlemail.com>
Wed, 25 Dec 2013 18:25:46 +0000 (19:25 +0100)
source/blender/editors/space_view3d/drawobject.c

index 1cb97979ea1107cc894f87b9214d18994a70dd84..f825f7ecf9f348df92b8dca183f58a2f34e8dc49 100644 (file)
@@ -6288,6 +6288,8 @@ static void draw_bounding_volume(Scene *scene, Object *ob, char type)
        if (ob->gameflag & OB_BOUNDS) { /* bounds need to be drawn around origin for game engine */
 
                if (type == OB_BOUND_BOX) {
+                       float vec[8][3], size[3];
+                       
                        size[0] = 0.5f * fabsf(bb->vec[0][0] - bb->vec[4][0]);
                        size[1] = 0.5f * fabsf(bb->vec[0][1] - bb->vec[2][1]);
                        size[2] = 0.5f * fabsf(bb->vec[0][2] - bb->vec[1][2]);