Blender Git Loki
Git Commits -> Revision 3576e66
Revision 3576e66 by Jacques Lucke (geometry-nodes, geometry-nodes-distribute-points, geometry-nodes-mix-attributes, geometry-nodes-point-separate-node, temp-geometry-nodes-distribute-points-cleanup) November 25, 2020, 14:38 (GMT) |
Nodes: initial abstraction to simplify math node implementations Currently, implementing a node that supports math operations requires you to write a long switch statement. The goal of this abstraction is to reduce the number of these switch statements. Note, this commit adds new such long switch cases. However, in the upcoming commits existing math nodes are updated to use this abstraction, resulting in less code overall. |
Commit Details:
Full Hash: 3576e669cbca2957ed29eb877d9161310374da63
Parent Commit: 044def8
Lines Changed: +319, -0
2 Added Paths:
/source/blender/nodes/intern/math_functions.cc (+117, -0) (View)
/source/blender/nodes/NOD_math_functions.hh (+200, -0) (View)
/source/blender/nodes/NOD_math_functions.hh (+200, -0) (View)
1 Modified Path:
/source/blender/nodes/CMakeLists.txt (+2, -0) (Diff)