Fix T64855: smooth view not working in Eevee rendered mode

This commit is contained in:
Brecht Van Lommel
2019-09-19 14:09:49 +02:00
parent 8927d416f6
commit 441f6cf020
2 changed files with 3 additions and 3 deletions

View File

@@ -581,7 +581,7 @@ static void view3d_lightcache_update(bContext *C)
Scene *scene = CTX_data_scene(C);
if (strcmp(scene->r.engine, RE_engine_id_BLENDER_EEVEE) != 0) {
if (!BKE_scene_uses_blender_eevee(scene)) {
/* Only do auto bake if eevee is the active engine */
return;
}

View File

@@ -196,8 +196,8 @@ void ED_view3d_smooth_view_ex(
sms.to_camera = true; /* restore view3d values in end */
}
/* skip smooth viewing for render engine draw */
if (smooth_viewtx && v3d->shading.type != OB_RENDER) {
/* skip smooth viewing for external render engine draw */
if (smooth_viewtx && !(v3d->shading.type == OB_RENDER && rv3d->render_engine)) {
bool changed = false; /* zero means no difference */
if (sview->camera_old != sview->camera) {