- 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user