Bugfix for mysteriously disappearing left eyeball. Bounding boxes

used for clipping were being stored in the mesh, but modifiers
can result in two objects with the same mesh having a different
bounding box. Solution is to store bounding box in the object.
This commit is contained in:
2007-12-05 21:50:23 +00:00
parent b0c01a414b
commit 26b8892c9c
8 changed files with 25 additions and 14 deletions

View File

@@ -1484,7 +1484,7 @@ static PyObject *Object_getBoundBox( BPy_Object * self )
switch ( self->object->type ) {
case OB_MESH:
me = self->object->data;
vec = (float*) mesh_get_bb(me)->vec;
vec = (float*) mesh_get_bb(self->object)->vec;
break;
case OB_CURVE:
case OB_FONT: