Fix T94867: viewport render not updating when editing color ramp

The changed node wasn't tagged correctly.
This commit is contained in:
Jacques Lucke 2022-01-14 12:50:38 +01:00
parent 261517e475
commit c9a8975de5
Notes: blender-bot 2023-12-08 16:39:08 +01:00
Referenced by issue #94867, Regression: Cycles viewport render not updating when editing form fields of ColorRamp node
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,8 @@
#include "BLI_utildefines.h"
#include "BKE_node_tree_update.h"
#include "RNA_define.h"
#include "rna_internal.h"
@ -321,6 +323,7 @@ static void rna_ColorRamp_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *
CMP_NODE_VALTORGB,
TEX_NODE_VALTORGB,
GEO_NODE_LEGACY_ATTRIBUTE_COLOR_RAMP)) {
BKE_ntree_update_tag_node_property(ntree, node);
ED_node_tree_propagate_change(NULL, bmain, ntree);
}
}