diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2013-12-25 22:25:46 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2013-12-25 22:25:46 +0400 |
commit | 07ebe893643c433d3fa09d120f780ef14b88f4b3 (patch) | |
tree | d5ad1916fc0f7cff965aa07e89d8d1fedc9175e2 /source/blender | |
parent | 1fef90695ef0bc6f78196e48d72680ae89b525f3 (diff) |
Missed this in last commit
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 1cb97979ea1..f825f7ecf9f 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -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]); |