the last selected nurbs curve lastnu could become an invalid pointer in places, access this via functions now and store an index

rather then a pointer so if it becomes invalid it will just return a NULL pointer.
This commit is contained in:
Campbell Barton
2008-05-25 23:05:13 +00:00
parent 5263021aa8
commit b7c6da39ae
3 changed files with 46 additions and 34 deletions

View File

@@ -37,6 +37,9 @@ struct BezTriple;
struct BPoint;
struct BezTripleNurb;
void set_actNurb(struct Nurb *nu);
struct Nurb * get_actNurb( void );
short isNurbsel(struct Nurb *nu);
int isNurbsel_count(struct Nurb *nu);
void printknots(void);