Fix #34616: Wrong face culling for curves with constructive modifiers

If curve object does have derived mesh, culling shall happen for
back faces, not front.
This commit is contained in:
Sergey Sharybin 2013-03-14 09:50:29 +00:00
parent 4dcd4e1a28
commit ccd05c33ed

@ -3773,7 +3773,7 @@ static int drawDispList(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *bas
if (v3d->flag2 & V3D_BACKFACE_CULLING) {
/* not all displists use same in/out normal direction convention */
glEnable(GL_CULL_FACE);
glCullFace((base->object->type == OB_MBALL) ? GL_BACK : GL_FRONT);
glCullFace((base->object->type == OB_MBALL || base->object->derivedFinal) ? GL_BACK : GL_FRONT);
}
retval = drawDispList_nobackface(scene, v3d, rv3d, base, dt, dflag, ob_wire_col);