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:
authorAaron Carlisle <Blendify>2021-09-28 22:29:16 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-09-28 22:30:23 +0300
commitc7a7c3f5e5ddd5d8919da84e75c1a277ba0b6de9 (patch)
tree5e142eb1cdb46e18844f54ea3a0dca4307e54c6e /source/blender/nodes/composite/nodes/node_composite_sunbeams.c
parent87e315c2375650acf091eb28a6a4badb1c9e50d2 (diff)
Cleanup: convert compositor nodes to c++
- Many cleanups of to use list base - Some variable changes These change is needed to migrate to the new socket builder API Reviewed By: manzanilla Differential Revision: https://developer.blender.org/D12366
Diffstat (limited to 'source/blender/nodes/composite/nodes/node_composite_sunbeams.c')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_sunbeams.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_sunbeams.c b/source/blender/nodes/composite/nodes/node_composite_sunbeams.c
deleted file mode 100644
index 84ab2d30d34..00000000000
--- a/source/blender/nodes/composite/nodes/node_composite_sunbeams.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * The Original Code is Copyright (C) 2014 Blender Foundation.
- * All rights reserved.
- */
-
-/** \file
- * \ingroup cmpnodes
- */
-
-#include "node_composite_util.h"
-
-static bNodeSocketTemplate inputs[] = {
- {SOCK_RGBA, N_("Image"), 1.0f, 1.0f, 1.0f, 1.0f},
- {-1, ""},
-};
-static bNodeSocketTemplate outputs[] = {
- {SOCK_RGBA, N_("Image")},
- {-1, ""},
-};
-
-static void init(bNodeTree *UNUSED(ntree), bNode *node)
-{
- NodeSunBeams *data = MEM_callocN(sizeof(NodeSunBeams), "sun beams node");
-
- data->source[0] = 0.5f;
- data->source[1] = 0.5f;
-
- node->storage = data;
-}
-
-void register_node_type_cmp_sunbeams(void)
-{
- static bNodeType ntype;
-
- cmp_node_type_base(&ntype, CMP_NODE_SUNBEAMS, "Sun Beams", NODE_CLASS_OP_FILTER, 0);
- node_type_socket_templates(&ntype, inputs, outputs);
- node_type_init(&ntype, init);
- node_type_storage(
- &ntype, "NodeSunBeams", node_free_standard_storage, node_copy_standard_storage);
-
- nodeRegisterType(&ntype);
-}