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:
@@ -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<eNodeSocketDatatype> decl_to_data_type(const SocketDeclarat
|
||||
else if (dynamic_cast<const decl::Object *>(&socket_decl)) {
|
||||
return SOCK_OBJECT;
|
||||
}
|
||||
else if (dynamic_cast<const decl::Geometry *>(&socket_decl)) {
|
||||
return SOCK_GEOMETRY;
|
||||
}
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user