diff options
author | Jacques Lucke <jacques@blender.org> | 2020-12-17 13:55:45 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-12-17 13:56:18 +0300 |
commit | 0eedba328df3cbc326900c34cdfc39b8554ad5ec (patch) | |
tree | 866fc2d31df07f6d3059cbf3b64c6492268def9b /source/blender/makesrna/intern | |
parent | 2945c1e3e55ee12c90464246977de17d28870eb8 (diff) |
Geometry Nodes: add Attribute Color Ramp node
Differential Revision: https://developer.blender.org/D9861
Ref T82585.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 4cd5b45ce78..d4ac3d1b084 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -8507,6 +8507,18 @@ static void def_geo_point_distribute(StructRNA *srna) RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); } +static void def_geo_attribute_color_ramp(StructRNA *srna) +{ + PropertyRNA *prop; + + RNA_def_struct_sdna_from(srna, "NodeAttributeColorRamp", "storage"); + + prop = RNA_def_property(srna, "color_ramp", PROP_POINTER, PROP_NONE); + RNA_def_property_struct_type(prop, "ColorRamp"); + RNA_def_property_ui_text(prop, "Color Ramp", ""); + RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); +} + /* -------------------------------------------------------------------------- */ static void rna_def_shader_node(BlenderRNA *brna) |