when curves draw as derived meshes, check their face count rather then if the display list has faces.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user