- add mesh_get_bb function to return mesh boundbox and calc if needed

- switch all mesh boundbox access to go through mesh_get_bb
 - switch object_handle_update to call mesh_changed instead of making
   the displist data immediately (delayed calculation)
This commit is contained in:
Daniel Dunbar
2005-07-14 18:04:27 +00:00
parent 3f769ff371
commit b22e3414ca
6 changed files with 33 additions and 20 deletions

View File

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