Fix for bug #16662: modifiers on lattices were ignored sometimes

when rendering opengl previews, it unnecessarily cleared lattice
displists when it was really intended for shaded mode colors.
This commit is contained in:
Brecht Van Lommel 2008-09-19 21:52:15 +00:00
parent 4693a5af48
commit 650ae3b4e6

@ -757,7 +757,10 @@ void reshadeall_displist(void)
for(base= G.scene->base.first; base; base= base->next) {
ob= base->object;
freedisplist(&ob->disp);
if(ELEM5(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_MBALL))
freedisplist(&ob->disp);
if(base->lay & G.scene->lay) {
/* Metaballs have standard displist at the Object */
if(ob->type==OB_MBALL) shadeDispList(base);