fix [#26785] Curve shows in 3dview regardless of "Only Render"

This commit is contained in:
Campbell Barton 2011-04-04 22:40:56 +00:00
parent 257c408f46
commit b3bc0040d8

@ -3164,9 +3164,11 @@ static int drawDispList(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *bas
index3_nors_incr= 0;
if( displist_has_faces(lb)==0) {
draw_index_wire= 0;
drawDispListwire(lb);
draw_index_wire= 1;
if((v3d->flag2 & V3D_RENDER_OVERRIDE)==0) {
draw_index_wire= 0;
drawDispListwire(lb);
draw_index_wire= 1;
}
}
else {
if(draw_glsl_material(scene, ob, v3d, dt)) {