Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan <EitanSomething>2021-06-10 18:16:37 +0300
committerHans Goudey <h.goudey@me.com>2021-06-10 18:16:37 +0300
commit53c98e45cf73eadd044e5b87db47f41ea3ff8f42 (patch)
tree8d55fb4474f1ea807ac9efb6729832b6d34dfe98 /source/blender/makesrna/intern/rna_nodetree.c
parentbcefce33f24dd3646b84e1baa0db6db76222f1c2 (diff)
Geometry Nodes: Add Texture and Material options to switch node
These new socket types can be supported in the switch node along with the others. Differential Revision: https://developer.blender.org/D11560
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 6a38a22f9b2..b625f0fc204 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -1985,7 +1985,9 @@ static bool switch_type_supported(const EnumPropertyItem *item)
SOCK_RGBA,
SOCK_GEOMETRY,
SOCK_OBJECT,
- SOCK_COLLECTION);
+ SOCK_COLLECTION,
+ SOCK_TEXTURE,
+ SOCK_MATERIAL);
}
static const EnumPropertyItem *rna_GeometryNodeSwitch_type_itemf(bContext *UNUSED(C),