Two bugfixes:
- new WM_error() needed 'struct' in definition 
- fixed crash rrors reading files with curves.
This commit is contained in:
Ton Roosendaal 2008-12-19 18:48:41 +00:00
parent a3d3619898
commit 12ad72ba8f
3 changed files with 4 additions and 3 deletions

@ -99,7 +99,8 @@ void calc_curvepath(Object *ob)
if(ob==NULL || ob->type != OB_CURVE) return;
cu= ob->data;
//XXX if(ob==G.obedit) nu= editNurb.first;
//XXX else nu= cu->nurb.first;
//XXX else
nu= cu->nurb.first;
if(cu->path) free_path(cu->path);
cu->path= NULL;

@ -1455,7 +1455,7 @@ void makeDispListCurveTypes(Object *ob, int forOrco)
float (*originalVerts)[3];
float (*deformedVerts)[3];
int obedit= (G.obedit && G.obedit->data==ob->data && G.obedit->type==OB_CURVE);
ListBase *nubase; //XXX ListBase *nubase = obedit?&editNurb:&cu->nurb;
ListBase *nubase= &cu->nurb; //XXX ListBase *nubase = obedit?&editNurb:&cu->nurb;
int numVerts;
BLI_freelistN(&(cu->bev));

@ -110,7 +110,7 @@ int WM_operator_confirm (struct bContext *C, struct wmOperator *op, struct wm
int WM_operator_winactive (struct bContext *C);
/* default error box */
void WM_error(bContext *C, char *str);
void WM_error(struct bContext *C, char *str);
/* operator api */
wmOperatorType *WM_operatortype_find(const char *idname);