forked from bartvdbraak/blender
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:
parent
989f67f522
commit
c7f9e9a80f
@ -1369,6 +1369,11 @@ void makeDispListCurveTypes(Scene *scene, Object *ob, int forOrco)
|
||||
Curve *cu= ob->data;
|
||||
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));
|
||||
dispbase= &(ob->disp);
|
||||
freedisplist(dispbase);
|
||||
|
Loading…
Reference in New Issue
Block a user