when curves draw as derived meshes, check their face count rather then if the display...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 21 Mar 2010 22:54:30 +0000 (22:54 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 21 Mar 2010 22:54:30 +0000 (22:54 +0000)
source/blender/editors/space_view3d/drawobject.c

index 5a495488afaf16471ad9cc59acfb998b2abf7638..fabb4dd4bd7b2b9315fac9d1e56b465f50eb0425 100644 (file)
@@ -2984,7 +2984,7 @@ static int drawCurveDerivedMesh(Scene *scene, View3D *v3d, RegionView3D *rv3d, B
                return 1;
        }
 
-       if(dt>OB_WIRE && displist_has_faces(&cu->disp)!=0) {
+       if(dt>OB_WIRE && dm->getNumFaces(dm)) {
                int glsl = draw_glsl_material(scene, ob, v3d, dt);
                GPU_begin_object_materials(v3d, rv3d, scene, ob, glsl, NULL);