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:
authorCharlie Jolly <charlie>2021-10-14 16:18:24 +0300
committerCharlie Jolly <mistajolly@gmail.com>2021-10-14 16:19:32 +0300
commit25a255c32a73b9d964d9f8a4733c4a42dfdc2f4f (patch)
tree4259bd7d57353c2664d1c095d1800d3bcacfaa32 /source/blender/nodes/NOD_socket_declarations.hh
parent138aa209592ef3c2232007a9723659116d986d16 (diff)
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
Diffstat (limited to 'source/blender/nodes/NOD_socket_declarations.hh')
-rw-r--r--source/blender/nodes/NOD_socket_declarations.hh11
1 files changed, 11 insertions, 0 deletions
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>;
+
+ Image();
+};
+
class Geometry : public SocketDeclaration {
public:
using Builder = SocketDeclarationBuilder<Geometry>;
@@ -339,6 +346,10 @@ inline Texture::Texture() : IDSocketDeclaration("NodeSocketTexture")
{
}
+inline Image::Image() : IDSocketDeclaration("NodeSocketImage")
+{
+}
+
/** \} */
} // namespace blender::nodes::decl