Blender Git Commit Log
Git Commits -> Revision 8369ada
Revision 8369ada by Jacques Lucke (master) July 21, 2020, 15:35 (GMT) |
Particles: initial object socket and emitter node support Object sockets work now, but only the new Object Transforms and the Particle Mesh Emitter node use it. The emitter does not actually use the mesh surface yet. Instead, new particles are just emitted around the origin of the object. Internally, handles to object data blocks are passed around in the network, instead of raw object pointers. Using handles has a couple of benefits: * The caller of the function has control over which handles can be resolved and therefore limit access to specific data. The set of data blocks that is accessed by a node tree should be known statically. This is necessary for a proper integration with the dependency graph. * When the pointer to an object changes (e.g. after restarting Blender), all handles are still valid. * When an object is deleted, the handle is invalidated without causing crashes. * The handle is just an integer that can be stored per particle and can be cached easily. The mapping between handles and their corresponding data blocks is stored in the Simulation data block. |
Commit Details:
Full Hash: 8369adabc0ec7a1fce248b688bf20860ae0434bb
Parent Commit: 6c7e62e
Lines Changed: +634, -57
2 Added Paths:
/source/blender/blenkernel/BKE_persistent_data_handle.hh (+132, -0) (View)
/source/blender/nodes/function/nodes/node_fn_object_transforms.cc (+88, -0) (View)
/source/blender/nodes/function/nodes/node_fn_object_transforms.cc (+88, -0) (View)
25 Modified Paths:
/release/scripts/startup/nodeitems_builtins.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/simulation.cc (+9, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+11, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -0) (Diff)
/source/blender/functions/FN_multi_function.hh (+5, -0) (Diff)
/source/blender/functions/FN_multi_function_context.hh (+25, -1) (Diff)
/source/blender/functions/FN_multi_function_network.hh (+4, -4) (Diff)
/source/blender/functions/FN_multi_function_params.hh (+4, -0) (Diff)
/source/blender/functions/FN_multi_function_signature.hh (+10, -0) (Diff)
/source/blender/functions/intern/multi_function_network_evaluation.cc (+1, -1) (Diff)
/source/blender/functions/intern/multi_function_network_optimization.cc (+21, -9) (Diff)
/source/blender/makesdna/DNA_simulation_types.h (+12, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/intern/node_socket.cc (+55, -1) (Diff)
/source/blender/nodes/NOD_function.h (+1, -0) (Diff)
/source/blender/nodes/NOD_node_tree_multi_function.hh (+6, -1) (Diff)
/source/blender/nodes/NOD_static_types.h (+2, -0) (Diff)
/source/blender/simulation/intern/particle_function.cc (+7, -1) (Diff)
/source/blender/simulation/intern/particle_function.hh (+2, -0) (Diff)
/source/blender/simulation/intern/simulation_collect_influences.cc (+147, -31) (Diff)
/source/blender/simulation/intern/simulation_solver.cc (+62, -5) (Diff)
/source/blender/simulation/intern/simulation_solver.hh (+23, -2) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/simulation.cc (+9, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+11, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -0) (Diff)
/source/blender/functions/FN_multi_function.hh (+5, -0) (Diff)
/source/blender/functions/FN_multi_function_context.hh (+25, -1) (Diff)
/source/blender/functions/FN_multi_function_network.hh (+4, -4) (Diff)
/source/blender/functions/FN_multi_function_params.hh (+4, -0) (Diff)
/source/blender/functions/FN_multi_function_signature.hh (+10, -0) (Diff)
/source/blender/functions/intern/multi_function_network_evaluation.cc (+1, -1) (Diff)
/source/blender/functions/intern/multi_function_network_optimization.cc (+21, -9) (Diff)
/source/blender/makesdna/DNA_simulation_types.h (+12, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/intern/node_socket.cc (+55, -1) (Diff)
/source/blender/nodes/NOD_function.h (+1, -0) (Diff)
/source/blender/nodes/NOD_node_tree_multi_function.hh (+6, -1) (Diff)
/source/blender/nodes/NOD_static_types.h (+2, -0) (Diff)
/source/blender/simulation/intern/particle_function.cc (+7, -1) (Diff)
/source/blender/simulation/intern/particle_function.hh (+2, -0) (Diff)
/source/blender/simulation/intern/simulation_collect_influences.cc (+147, -31) (Diff)
/source/blender/simulation/intern/simulation_solver.cc (+62, -5) (Diff)
/source/blender/simulation/intern/simulation_solver.hh (+23, -2) (Diff)