Fix for bug #16662: modifiers on lattices were ignored sometimes
[blender.git] / source / blender / blenkernel / intern / displist.c
index 3b79f6689c09dcf4e01cc2a6a95e0eaa98bb27ef..69c8f3406a2fcaf7bf777c99867f8492feb5b118 100644 (file)
@@ -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);