there wasn't a good way to know if a RegionView3D was perspective or not (without...
[blender-staging.git] / source / blender / editors / space_view3d / drawmesh.c
index d062ca8e25fbc606a48d6d1f82a6fc9c525ceb78..f070bae4e549cd258e1c823c6e1bbafee46fabaf 100644 (file)
@@ -366,7 +366,7 @@ static void draw_textured_begin(Scene *scene, View3D *v3d, RegionView3D *rv3d, O
        }
        else {
                /* draw with lights in the scene otherwise */
-               Gtexdraw.islit= GPU_scene_object_lights(scene, ob, v3d->lay, rv3d->viewmat, get_view3d_ortho(v3d, rv3d));
+               Gtexdraw.islit= GPU_scene_object_lights(scene, ob, v3d->lay, rv3d->viewmat, !rv3d->is_persp);
        }
        
        obcol[0]= CLAMPIS(ob->col[0]*255, 0, 255);