[Bf-blender-cvs] [c9a8975de55] master: Fix T94867: viewport render not updating when editing color ramp
Jacques Lucke
noreply at git.blender.org
Fri Jan 14 12:51:32 CET 2022
Commit: c9a8975de5555c716013d0c16058bdc401541965
Author: Jacques Lucke
Date: Fri Jan 14 12:50:38 2022 +0100
Branches: master
https://developer.blender.org/rBc9a8975de5555c716013d0c16058bdc401541965
Fix T94867: viewport render not updating when editing color ramp
The changed node wasn't tagged correctly.
===================================================================
M source/blender/makesrna/intern/rna_color.c
===================================================================
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);
}
}
More information about the Bf-blender-cvs
mailing list