forked from bartvdbraak/blender
2.5
Two bugfixes: - new WM_error() needed 'struct' in definition - fixed crash rrors reading files with curves.
This commit is contained in:
parent
a3d3619898
commit
12ad72ba8f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user