From 25a255c32a73b9d964d9f8a4733c4a42dfdc2f4f Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Thu, 14 Oct 2021 14:18:24 +0100 Subject: Nodes: add boilerplate for image sockets The sockets are not exposed in any nodes yet. They work similar to the Object/Collection/Texture sockets, which also just reference a data block. Based on rB207472930834 Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D12861 --- source/blender/nodes/NOD_socket_declarations.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/blender/nodes/NOD_socket_declarations.hh') diff --git a/source/blender/nodes/NOD_socket_declarations.hh b/source/blender/nodes/NOD_socket_declarations.hh index 00874cad766..e22b96cd1ff 100644 --- a/source/blender/nodes/NOD_socket_declarations.hh +++ b/source/blender/nodes/NOD_socket_declarations.hh @@ -193,6 +193,13 @@ class Texture : public IDSocketDeclaration { Texture(); }; +class Image : public IDSocketDeclaration { + public: + using Builder = SocketDeclarationBuilder; + + Image(); +}; + class Geometry : public SocketDeclaration { public: using Builder = SocketDeclarationBuilder; @@ -339,6 +346,10 @@ inline Texture::Texture() : IDSocketDeclaration("NodeSocketTexture") { } +inline Image::Image() : IDSocketDeclaration("NodeSocketImage") +{ +} + /** \} */ } // namespace blender::nodes::decl -- cgit v1.2.3