From 574bd866c867ba0e63365c2fa59e4490295990bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 6 Aug 2020 13:37:41 +0200 Subject: [PATCH] Fix T78520 EEVEE: No viewport update when changing material nodetree This was comming from rBd82c3d86155ea3c7831c7b5ef5d07bc8e2d99394 --- source/blender/draw/engines/eevee/eevee_temporal_sampling.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c index c1502afe519..e184a80d2f6 100644 --- a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c +++ b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c @@ -269,8 +269,9 @@ int EEVEE_temporal_sampling_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data } } else { - /* Fix Texture painting (see T79370). */ - if (DRW_state_is_navigating()) { + const bool all_shaders_compiled = stl->g_data->queued_shaders_count_prev == 0; + /* Fix Texture painting (see T79370) and shader compilation (see T78520). */ + if (DRW_state_is_navigating() || !all_shaders_compiled) { effects->taa_current_sample = 1; } else {