Code cleanup: remove check for painting non-mesh objects (its impossible)
authorCampbell Barton <ideasman42@gmail.com>
Tue, 28 Jan 2014 16:38:07 +0000 (03:38 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 28 Jan 2014 16:38:07 +0000 (03:38 +1100)
source/blender/editors/space_view3d/drawobject.c

index dd2138b5420701f60072fbdc18f770cd15b3237e..f4619e3c4cd5400173bfe31ce3eb03babbc8a1cd 100644 (file)
@@ -6769,13 +6769,6 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short
 
                                glEnable(GL_DEPTH_TEST);
                        }
-                       else {
-                               if (dt < OB_SOLID) {
-                                       dt = OB_SOLID;
-                                       glEnable(GL_DEPTH_TEST);
-                                       zbufoff = 1;
-                               }
-                       }
                }
                else {
                        /* matcap check - only when not painting color */