Blender Git Loki

Git Commits -> Revision 456c7f2

March 31, 2020, 10:27 (GMT)
Add simulation node tree type

This implements a new builtin node tree type called `SimulationNodeTree`.
It is not yet embedded in the `Simulation` data block.

This is part of T73324.

The `WITH_NEW_SIMULATION_TYPE` cmake option is used to control whether `Simulation Editor` is shown in the editors menu.
Disabling the rna code with this option was a bit tricky, because the node tree type stores a reference to the rna type.
I could do the `#ifdef WITH_NEW_SIMULATION_TYPE` everywhere, but I'm not sure if it is worth the effort.

Currently there is only the group node, which is unusable, because there are no other nodes.
I'll submit those for review separately.

Differential Revision: https://developer.blender.org/D7287

Commit Details:

Full Hash: 456c7f2f901cc7ec0a35d6177bed17d38232a87b
Parent Commit: ebecd0a
Lines Changed: +249, -4

5 Added Paths:

/source/blender/nodes/NOD_simulation.h (+18, -0) (View)
/source/blender/nodes/simulation/nodes/node_sim_common.cc (+29, -0) (View)
/source/blender/nodes/simulation/node_simulation_tree.cc (+29, -0) (View)
/source/blender/nodes/simulation/node_simulation_util.cc (+13, -0) (View)
/source/blender/nodes/simulation/node_simulation_util.h (+24, -0) (View)

14 Modified Paths:

/source/blender/blenkernel/intern/node.c (+8, -0) (Diff)
/source/blender/editors/include/ED_node.h (+1, -0) (Diff)
/source/blender/editors/space_node/CMakeLists.txt (+4, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+9, -0) (Diff)
/source/blender/editors/space_node/node_edit.c (+6, -0) (Diff)
/source/blender/editors/space_node/node_group.c (+7, -2) (Diff)
/source/blender/editors/space_node/space_node.c (+5, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+62, -2) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+7, -0) (Diff)
/source/blender/nodes/intern/node_common.h (+8, -0) (Diff)
/source/blender/nodes/intern/node_util.h (+8, -0) (Diff)
/source/blender/nodes/NOD_common.h (+8, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021