Added proper initialize for curve pointer, fix for commit of march 24th.

This commit is contained in:
Ton Roosendaal
2006-04-02 11:41:46 +00:00
parent 1b50d353b7
commit 3be5302e40

View File

@@ -1720,10 +1720,12 @@ void docentre(int centremode)
}
}
else if ELEM(base->object->type, OB_CURVE, OB_SURF) {
if(G.obedit) {
/* totally weak code here... (ton) */
if(G.obedit==base->object) {
extern ListBase editNurb;
nu1= editNurb.first;
cu= G.obedit->data;
}
else {
cu= base->object->data;