when curves draw as derived meshes, check their face count rather then if the display list has faces.

This commit is contained in:
2010-03-21 22:54:30 +00:00
parent 44bfe1437a
commit 4394217b96

View 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);