[Bf-blender-cvs] [574bd866c86] blender-v2.90-release: Fix T78520 EEVEE: No viewport update when changing material nodetree

Clément Foucault noreply at git.blender.org
Thu Aug 6 13:38:49 CEST 2020


Commit: 574bd866c867ba0e63365c2fa59e4490295990bc
Author: Clément Foucault
Date:   Thu Aug 6 13:37:41 2020 +0200
Branches: blender-v2.90-release
https://developer.blender.org/rB574bd866c867ba0e63365c2fa59e4490295990bc

Fix T78520 EEVEE: No viewport update when changing material nodetree

This was comming from rBd82c3d86155ea3c7831c7b5ef5d07bc8e2d99394

===================================================================

M	source/blender/draw/engines/eevee/eevee_temporal_sampling.c

===================================================================

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 {



More information about the Bf-blender-cvs mailing list