fix [#26785] Curve shows in 3dview regardless of "Only Render"
authorCampbell Barton <ideasman42@gmail.com>
Mon, 4 Apr 2011 22:40:56 +0000 (22:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 4 Apr 2011 22:40:56 +0000 (22:40 +0000)
source/blender/editors/space_view3d/drawobject.c

index e656c0e..cf7ca95 100644 (file)
@@ -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)) {