- split makeDispList into makeDispList{Mesh,MBall,CurveTypes}, there is
still a makeDispList that dispatches to the appropriate one. makeDispList is on the way out and this makes it easier to track down exactly which places use makedispList and for what types of objects. - switch calls to makeDispList to appropriate more specific function (if the object type is known by caller). - added mesh_changed function that invalidates cached mesh data (but does not rebuild, mesh data gets rebuilt on access). Most old calls to makeDispListMesh use this instead now.
This commit is contained in:
@@ -127,7 +127,6 @@ PyObject *Curve_getNurb( BPy_Curve * self, int n );
|
||||
static int Curve_length( PyInstanceObject * inst );
|
||||
void update_displists( void *data );
|
||||
|
||||
void makeDispList( Object * ob );
|
||||
struct chartrans *text_to_curve( Object * ob, int mode );
|
||||
|
||||
|
||||
|
||||
@@ -355,7 +355,7 @@ PyObject *M_Library_Update( PyObject * self )
|
||||
} else {
|
||||
if( ob->type == OB_MESH && ob->parent
|
||||
&& ob->parent->type == OB_LATTICE )
|
||||
makeDispList( ob );
|
||||
makeDispListMesh( ob );
|
||||
}
|
||||
|
||||
ob = ob->id.next;
|
||||
|
||||
Reference in New Issue
Block a user