[Bf-blender-cvs] [e55a6bf82b6] master: Cleanup: Remove empty node socket template array

Aaron Carlisle noreply at git.blender.org
Wed Jan 5 22:45:47 CET 2022


Commit: e55a6bf82b60b64a29b06e66f5fd45c615504fe2
Author: Aaron Carlisle
Date:   Wed Jan 5 16:45:41 2022 -0500
Branches: master
https://developer.blender.org/rBe55a6bf82b60b64a29b06e66f5fd45c615504fe2

Cleanup: Remove empty node socket template array

===================================================================

M	source/blender/nodes/texture/nodes/node_texture_viewer.c

===================================================================

diff --git a/source/blender/nodes/texture/nodes/node_texture_viewer.c b/source/blender/nodes/texture/nodes/node_texture_viewer.c
index e40cdb66cb1..ea69de9a1d6 100644
--- a/source/blender/nodes/texture/nodes/node_texture_viewer.c
+++ b/source/blender/nodes/texture/nodes/node_texture_viewer.c
@@ -29,9 +29,6 @@ static bNodeSocketTemplate inputs[] = {
     {SOCK_RGBA, N_("Color"), 1.0f, 0.0f, 0.0f, 1.0f},
     {-1, ""},
 };
-static bNodeSocketTemplate outputs[] = {
-    {-1, ""},
-};
 
 static void exec(void *data,
                  int UNUSED(thread),
@@ -56,7 +53,7 @@ void register_node_type_tex_viewer(void)
   static bNodeType ntype;
 
   tex_node_type_base(&ntype, TEX_NODE_VIEWER, "Viewer", NODE_CLASS_OUTPUT);
-  node_type_socket_templates(&ntype, inputs, outputs);
+  node_type_socket_templates(&ntype, inputs, NULL);
   node_type_exec(&ntype, NULL, NULL, exec);
 
   ntype.no_muting = true;



More information about the Bf-blender-cvs mailing list