diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-11 00:40:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-11 00:40:09 +0300 |
commit | 15785b35f38230b7e1acc6b12a55eae2bbbaeae1 (patch) | |
tree | 0f69b82ecfa995983155ab2de7843ec77027f299 /source/blender/makesrna/intern | |
parent | f1ee345f9924478f97c26f1df61a917036a0e1d1 (diff) | |
parent | e03cfc23742826db5ca195f06ba41c73171f40f3 (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_color.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c index 39aeeb430c2..ea019c70445 100644 --- a/source/blender/makesrna/intern/rna_color.c +++ b/source/blender/makesrna/intern/rna_color.c @@ -185,7 +185,11 @@ static char *rna_ColorRamp_path(PointerRNA *ptr) char *node_path; for (node = ntree->nodes.first; node; node = node->next) { - if (ELEM(node->type, SH_NODE_VALTORGB, CMP_NODE_VALTORGB, TEX_NODE_VALTORGB)) { + if (ELEM(node->type, + SH_NODE_VALTORGB, + CMP_NODE_VALTORGB, + TEX_NODE_VALTORGB, + GEO_NODE_ATTRIBUTE_COLOR_RAMP)) { if (node->storage == ptr->data) { /* all node color ramp properties called 'color_ramp' * prepend path from ID to the node @@ -312,7 +316,11 @@ static void rna_ColorRamp_update(Main *bmain, Scene *UNUSED(scene), PointerRNA * bNode *node; for (node = ntree->nodes.first; node; node = node->next) { - if (ELEM(node->type, SH_NODE_VALTORGB, CMP_NODE_VALTORGB, TEX_NODE_VALTORGB)) { + if (ELEM(node->type, + SH_NODE_VALTORGB, + CMP_NODE_VALTORGB, + TEX_NODE_VALTORGB, + GEO_NODE_ATTRIBUTE_COLOR_RAMP)) { ED_node_tag_update_nodetree(bmain, ntree, node); } } |