Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-01-14 14:50:38 +0300
committerJacques Lucke <jacques@blender.org>2022-01-14 14:50:53 +0300
commitc9a8975de5555c716013d0c16058bdc401541965 (patch)
treea55514a41edd15f8536dc6c4927324e640a40c44 /source/blender/makesrna/intern/rna_color.c
parent261517e4759311e60190b087f5d5d6f8f57f279d (diff)
Fix T94867: viewport render not updating when editing color ramp
The changed node wasn't tagged correctly.
Diffstat (limited to 'source/blender/makesrna/intern/rna_color.c')
-rw-r--r--source/blender/makesrna/intern/rna_color.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index 091b457cc83..b12ec4651b4 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -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);
}
}