diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-10 19:29:52 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-10 19:29:52 +0300 |
commit | e03cfc23742826db5ca195f06ba41c73171f40f3 (patch) | |
tree | 0d111657ca408ba1a9e66645433a7a97d6756096 /source | |
parent | 40a18612651873373ea267195ecc654e9fc344bb (diff) |
Fix T85420: moving color ramp handles via position input does not work
This just needed some special case handling for the new attribute color ramp node...
Diffstat (limited to 'source')
-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); } } |