diff options
author | Hans Goudey <h.goudey@me.com> | 2021-02-17 09:01:33 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-17 09:01:33 +0300 |
commit | 2da0f3e523f723743f73895941072b301edb596e (patch) | |
tree | 58282e709fc6483fe532bcf63a73c0068c567291 /source/blender/makesrna/intern | |
parent | 47a269745ef2a6181fd139dca4d6975d6a8e1038 (diff) |
Geometry Nodes: Support integer type in the Attribute Fill Node
This will be used by the material index attribute when it is added.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index e72f50e813d..b372ff4c273 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -1931,7 +1931,8 @@ static void rna_GeometryNodeAttributeRandomize_data_type_update(Main *bmain, static bool attribute_fill_type_supported(const EnumPropertyItem *item) { - return ELEM(item->value, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_COLOR, CD_PROP_BOOL); + return ELEM( + item->value, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_COLOR, CD_PROP_BOOL, CD_PROP_INT32); } static const EnumPropertyItem *rna_GeometryNodeAttributeFill_type_itemf(bContext *UNUSED(C), PointerRNA *UNUSED(ptr), |