From e4e4b51c833fd0f92baaf1dc81e663221b60ec2b Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 17 Mar 2024 19:08:21 +0100 Subject: [PATCH] Fix: add missing socket type in forward declaration list Not quite sure how I missed this before. It's quite unfortunate that this causes issues like #119179 in Blender 4.0. --- source/blender/nodes/intern/node_socket.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/nodes/intern/node_socket.cc b/source/blender/nodes/intern/node_socket.cc index 4264ffc4f11..bb54702400a 100644 --- a/source/blender/nodes/intern/node_socket.cc +++ b/source/blender/nodes/intern/node_socket.cc @@ -38,6 +38,7 @@ #include "NOD_node_declaration.hh" #include "NOD_socket.hh" #include "NOD_socket_declarations.hh" +#include "NOD_socket_declarations_geometry.hh" using namespace blender; using blender::bke::SocketValueVariant; @@ -324,6 +325,9 @@ static std::optional decl_to_data_type(const SocketDeclarat else if (dynamic_cast(&socket_decl)) { return SOCK_OBJECT; } + else if (dynamic_cast(&socket_decl)) { + return SOCK_GEOMETRY; + } return std::nullopt; }