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.
This commit is contained in:
Jacques Lucke 2024-03-17 19:08:21 +01:00
parent ee1fa8e1ca
commit e4e4b51c83

View File

@ -38,6 +38,7 @@
#include "NOD_node_declaration.hh" #include "NOD_node_declaration.hh"
#include "NOD_socket.hh" #include "NOD_socket.hh"
#include "NOD_socket_declarations.hh" #include "NOD_socket_declarations.hh"
#include "NOD_socket_declarations_geometry.hh"
using namespace blender; using namespace blender;
using blender::bke::SocketValueVariant; using blender::bke::SocketValueVariant;
@ -324,6 +325,9 @@ static std::optional<eNodeSocketDatatype> decl_to_data_type(const SocketDeclarat
else if (dynamic_cast<const decl::Object *>(&socket_decl)) { else if (dynamic_cast<const decl::Object *>(&socket_decl)) {
return SOCK_OBJECT; return SOCK_OBJECT;
} }
else if (dynamic_cast<const decl::Geometry *>(&socket_decl)) {
return SOCK_GEOMETRY;
}
return std::nullopt; return std::nullopt;
} }