python api: add functionality to remove vertex color layers.
[blender.git] / source / blender / editors / space_view3d / drawobject.c
index 9e8ab73556485fef8aa8fea5a077d577ea0891fe..5a537f6f6c57be486f62a31552b0b255149e6a76 100644 (file)
@@ -1416,15 +1416,15 @@ static void draw_limit_line(float sta, float end, const short dflag, unsigned in
        glVertex3f(0.0, 0.0, -end);
        glEnd();
 
-       glPointSize(3.0);
-       glBegin(GL_POINTS);
-       if (!(dflag & (DRAW_PICKING | DRAW_CONSTCOLOR | DRAW_SCENESET))) {
+       if (!(dflag & DRAW_PICKING)) {
+               glPointSize(3.0);
+               glBegin(GL_POINTS);
                cpack(col);
+               glVertex3f(0.0, 0.0, -sta);
+               glVertex3f(0.0, 0.0, -end);
+               glEnd();
+               glPointSize(1.0);
        }
-       glVertex3f(0.0, 0.0, -sta);
-       glVertex3f(0.0, 0.0, -end);
-       glEnd();
-       glPointSize(1.0);
 }