forked from bartvdbraak/blender
curve_modifier() call was in makeDispList() already, and called twice,
causing initrender to free illegal pointer...
This commit is contained in:
parent
e656ce232a
commit
0a6730d830
@ -2166,10 +2166,9 @@ static void init_render_curve(Object *ob)
|
|||||||
int totvert, frontside, need_orco=0, firststartvert, *index;
|
int totvert, frontside, need_orco=0, firststartvert, *index;
|
||||||
|
|
||||||
cu= ob->data;
|
cu= ob->data;
|
||||||
nu= cu->nurb.first;
|
if(cu->nurb.first==NULL) return;
|
||||||
if(nu==0) return;
|
|
||||||
|
|
||||||
curve_modifier(ob, 's');
|
/* no modifier call here, is in makedisp */
|
||||||
|
|
||||||
/* test displist */
|
/* test displist */
|
||||||
if(cu->disp.first==0) makeDispList(ob);
|
if(cu->disp.first==0) makeDispList(ob);
|
||||||
@ -2243,9 +2242,6 @@ static void init_render_curve(Object *ob)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* modifier() will get deform included later */
|
|
||||||
curve_modifier(ob, 'e');
|
|
||||||
|
|
||||||
if(ob->parent && ob->parent->type==OB_LATTICE) {
|
if(ob->parent && ob->parent->type==OB_LATTICE) {
|
||||||
lt= ob->parent->data;
|
lt= ob->parent->data;
|
||||||
init_latt_deform(ob->parent, ob);
|
init_latt_deform(ob->parent, ob);
|
||||||
|
Loading…
Reference in New Issue
Block a user