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:
authorJacques Lucke <jacques@blender.org>2020-02-28 15:42:46 +0300
committerJacques Lucke <jacques@blender.org>2020-02-28 15:42:46 +0300
commit87d20d7c923352075f4cc460552e410c9d42bd52 (patch)
tree6f45942b9e08626547baf5d17f2a2bb61e3255fc /source/blender/simulations
parentee292426a72402d8fff25f71f4f6912bbd9dff09 (diff)
remove leftovers from initial simulation node tree
Diffstat (limited to 'source/blender/simulations')
-rw-r--r--source/blender/simulations/CMakeLists.txt6
-rw-r--r--source/blender/simulations/nodes/SIM_node_tree.h17
-rw-r--r--source/blender/simulations/nodes/my_test_node.cc72
-rw-r--r--source/blender/simulations/nodes/simulation_node_tree.cc25
4 files changed, 0 insertions, 120 deletions
diff --git a/source/blender/simulations/CMakeLists.txt b/source/blender/simulations/CMakeLists.txt
index ca7232b6f89..331b0c6f85b 100644
--- a/source/blender/simulations/CMakeLists.txt
+++ b/source/blender/simulations/CMakeLists.txt
@@ -7,8 +7,6 @@ set(INC
../depsgraph
../functions
../imbuf
- ../blentranslation
- ../editors/include
../../../intern/guardedalloc
)
@@ -57,10 +55,6 @@ set(SRC
bparticles/particle_set.cpp
bparticles/force_interface.hpp
bparticles/force_interface.cpp
-
- nodes/SIM_node_tree.h
- nodes/simulation_node_tree.cc
- nodes/my_test_node.cc
)
set(LIB
diff --git a/source/blender/simulations/nodes/SIM_node_tree.h b/source/blender/simulations/nodes/SIM_node_tree.h
deleted file mode 100644
index c89934c9345..00000000000
--- a/source/blender/simulations/nodes/SIM_node_tree.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef __SIM_NODE_TREE_H__
-#define __SIM_NODE_TREE_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern struct bNodeTreeType *ntreeType_Simulation;
-
-void register_node_tree_type_sim(void);
-void register_node_type_my_test_node(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __SIM_NODE_TREE_H__ */
diff --git a/source/blender/simulations/nodes/my_test_node.cc b/source/blender/simulations/nodes/my_test_node.cc
deleted file mode 100644
index 8c4bbf79dd0..00000000000
--- a/source/blender/simulations/nodes/my_test_node.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-#include <cstring>
-
-#include "BKE_node.h"
-#include "SIM_node_tree.h"
-
-#include "BLI_vector.h"
-#include "BLI_string_ref.h"
-using BLI::StringRef;
-using BLI::StringRefNull;
-using BLI::Vector;
-
-class SocketDecl {
- public:
- bNodeTree *m_ntree;
- bNode *m_node;
-
- virtual void build() const = 0;
-};
-
-class InputSocketDecl : public SocketDecl {
-};
-
-class InputMockupSocketDecl : public InputSocketDecl {
- public:
- StringRefNull m_ui_name;
- StringRefNull m_identifier;
- StringRefNull m_idname;
-
- void build() const override
- {
- nodeAddSocket(
- m_ntree, m_node, SOCK_IN, m_idname.data(), m_identifier.data(), m_ui_name.data());
- }
-};
-
-class NodeDecl {
- private:
- Vector<SocketDecl *> m_inputs;
- Vector<SocketDecl *> m_outputs;
-};
-
-static void init_node(bNodeTree *ntree, bNode *node)
-{
- InputMockupSocketDecl decl;
- decl.m_ntree = ntree;
- decl.m_node = node;
- decl.m_ui_name = "Hello World";
- decl.m_identifier = "myid";
- decl.m_idname = "NodeSocketFloat";
- decl.build();
-}
-
-void register_node_type_my_test_node()
-{
- static bNodeType ntype = {0};
- ntype.minwidth = 20;
- ntype.minheight = 20;
- ntype.maxwidth = 1000;
- ntype.maxheight = 1000;
- ntype.height = 100;
- ntype.width = 140;
-
- strcpy(ntype.idname, "MyTestNode");
- strcpy(ntype.ui_name, "My Test Node");
- strcpy(ntype.ui_description, "My Test Node Description");
- ntype.type = NODE_CUSTOM;
-
- ntype.initfunc = init_node;
- ntype.poll = [](bNodeType *UNUSED(ntype), bNodeTree *UNUSED(ntree)) { return true; };
-
- nodeRegisterType(&ntype);
-}
diff --git a/source/blender/simulations/nodes/simulation_node_tree.cc b/source/blender/simulations/nodes/simulation_node_tree.cc
deleted file mode 100644
index 574e9fc9616..00000000000
--- a/source/blender/simulations/nodes/simulation_node_tree.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <cstring>
-
-#include "SIM_node_tree.h"
-#include "BKE_node.h"
-#include "MEM_guardedalloc.h"
-#include "BLT_translation.h"
-#include "RNA_access.h"
-
-bNodeTreeType *ntreeType_Simulation;
-
-void register_node_tree_type_sim()
-{
- bNodeTreeType *tt = ntreeType_Simulation = (bNodeTreeType *)MEM_callocN(
- sizeof(bNodeTreeType), "simulation node tree type");
- tt->type = NTREE_SIMULATION;
- strcpy(tt->idname, "SimulationNodeTree");
- strcpy(tt->ui_name, N_("Simulation Editor"));
- strcpy(tt->ui_description, N_("Simulation nodes"));
- tt->ui_icon = 0; /* Defined in drawnode.c */
- tt->ext.srna = &RNA_SimulationNodeTree;
-
- ntreeTypeAdd(tt);
-
- register_node_type_my_test_node();
-}