Fix T78520 EEVEE: No viewport update when changing material nodetree

This was comming from rBd82c3d86155ea3c7831c7b5ef5d07bc8e2d99394
This commit is contained in:
Clément Foucault 2020-08-06 13:37:41 +02:00
parent b313710c10
commit 574bd866c8
Notes: blender-bot 2023-02-14 08:25:14 +01:00
Referenced by issue #78520, EEVEE viewport isn't updating when adding or connecting new nodes to a material.
1 changed files with 3 additions and 2 deletions

View File

@ -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 {