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:
authorJohnny Matthews <johnny.matthews@gmail.com>2021-10-27 17:03:29 +0300
committerJohnny Matthews <johnny.matthews@gmail.com>2021-10-27 17:03:29 +0300
commitdc37990e24eb801e3ff9f9f0f42d364a0af0389e (patch)
tree40ba431883e450832230beb754f9bbcde5dc871f /source/blender/makesrna/intern/rna_nodetree.c
parent974002743e1fda0823a8101f92e8155a9baf1f21 (diff)
Geometry Nodes: Add Image Socket to Switch Node
Add the image type to the switch node without field support. Differential Revision: https://developer.blender.org/D13012
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c3
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 8535d334f39..6a36ef07dee 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -2056,7 +2056,8 @@ static bool switch_type_supported(const EnumPropertyItem *item)
SOCK_OBJECT,
SOCK_COLLECTION,
SOCK_TEXTURE,
- SOCK_MATERIAL);
+ SOCK_MATERIAL,
+ SOCK_IMAGE);
}
static const EnumPropertyItem *rna_GeometryNodeSwitch_type_itemf(bContext *UNUSED(C),