diff options
author | Jacques Lucke <jacques@blender.org> | 2022-01-04 15:59:47 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-01-04 15:59:47 +0300 |
commit | 7e3459ff786a33eb65d5e520a6011cc33a92a044 (patch) | |
tree | 328162363d73e0123d51813f5c7b8f5610082542 /source/blender/makesrna/intern | |
parent | b2867d436585bf7ff92f1d7e9a0de9bb5ede006b (diff) |
initial commit
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 98de40ead93..f7596d59d39 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -11287,6 +11287,33 @@ static void def_geo_realize_instances(StructRNA *srna) RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_GeometryNode_socket_update"); } +static void def_geo_scale_elements(StructRNA *srna) +{ + PropertyRNA *prop; + + static const EnumPropertyItem scale_elements_mode_items[] = { + {GEO_NODE_SCALE_ELEMENTS_MODE_FACE, + "FACE", + ICON_NONE, + "Face", + "Scale individual faces or neighbouring face islands"}, + {GEO_NODE_SCALE_ELEMENTS_MODE_EDGE, + "EDGE", + ICON_NONE, + "Edge", + "Scale individual edges or neighbouring edge islands"}, + {GEO_NODE_SCALE_ELEMENTS_MODE_CURVE, "CURVE", ICON_NONE, "Curve", "Scale individual curves"}, + {0, NULL, 0, NULL, NULL}, + }; + + prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_items(prop, rna_enum_attribute_type_items); + RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_GeometryNodeAttributeFill_type_itemf"); + RNA_def_property_enum_default(prop, CD_PROP_FLOAT); + RNA_def_property_ui_text(prop, "Data Type", ""); + RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_GeometryNode_socket_update"); +} + /* -------------------------------------------------------------------------- */ static void rna_def_shader_node(BlenderRNA *brna) |