Fix #28273: Crash playing with Follow path+Bevel+Material
Crash was caused by old refactor of displists. Added additional check to makeDispListCurveTypes.
This commit is contained in:
@@ -1369,6 +1369,11 @@ void makeDispListCurveTypes(Scene *scene, Object *ob, int forOrco)
|
|||||||
Curve *cu= ob->data;
|
Curve *cu= ob->data;
|
||||||
ListBase *dispbase;
|
ListBase *dispbase;
|
||||||
|
|
||||||
|
/* The same check for duplis as in do_makeDispListCurveTypes.
|
||||||
|
Happens when curve used for constraint/bevel was converted to mesh.
|
||||||
|
check there is still needed for render displist and orco displists. */
|
||||||
|
if(!ELEM3(ob->type, OB_SURF, OB_CURVE, OB_FONT)) return;
|
||||||
|
|
||||||
freedisplist(&(ob->disp));
|
freedisplist(&(ob->disp));
|
||||||
dispbase= &(ob->disp);
|
dispbase= &(ob->disp);
|
||||||
freedisplist(dispbase);
|
freedisplist(dispbase);
|
||||||
|
Reference in New Issue
Block a user