Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-03-21 20:11:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-21 20:11:25 +0300
commit903a8ed1fdba81b5f9df1e7f571fb49e9b917a10 (patch)
treed0f6b75b8334286dad365adc14ef40b8954a5625 /source/blender/blenlib/intern/boxpack2d.c
parentca94d97049f88a04178db1419b8a66fd9717b899 (diff)
missing x/y setting for the first box
Diffstat (limited to 'source/blender/blenlib/intern/boxpack2d.c')
-rw-r--r--source/blender/blenlib/intern/boxpack2d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/boxpack2d.c b/source/blender/blenlib/intern/boxpack2d.c
index ad90df650e2..e8cabbf1c05 100644
--- a/source/blender/blenlib/intern/boxpack2d.c
+++ b/source/blender/blenlib/intern/boxpack2d.c
@@ -174,6 +174,7 @@ void boxPack2D(boxPack *boxarray, int len, float *tot_width, float *tot_height)
/* This sets all the vertex locations */
SET_BOXLEFT(box, 0.0);
SET_BOXBOTTOM(box, 0.0);
+ box->x = box->y = 0.0;
for (i=0; i<3; i++)
vertex_pack_indicies[i] = box->v[i+1]->index;