Blender Git Commit Log

Git Commits -> Revision 46fff97

Revision 46fff97 by Jacques Lucke (master)
September 15, 2021, 14:09 (GMT)
Nodes: refactor socket declarations

This commits adds a few common flags to `SocketDeclaration`
so that they are available for all socket types (hide label, hide
value, is multi input). This allows porting over the remaining
geometry nodes to the new declaration system.

Furthermore, this commit separates the concepts of the socket
declaration and corresponding builders. The builders are used
by nodes to declare which sockets they have (e.g. `FloatBuilder`).
The ready build socket declarations can then be consumed by
other systems such as the versioning code. Both use cases
need different APIs and those will change for independent reasons,
so it makes sense to separate the classes.

Commit Details:

Full Hash: 46fff97604ae167473ecd4c0cd9108dc20ba22e3
Parent Commit: 5c6cc93
Lines Changed: +330, -277

8 Modified Paths:

/source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc (+8, -21) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_vector_rotate.cc (+22, -26) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_boolean.cc (+14, -27) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_join_geometry.cc (+7, -20) (Diff)
/source/blender/nodes/intern/node_declaration.cc (+29, -0) (Diff)
/source/blender/nodes/intern/node_socket_declarations.cc (+52, -63) (Diff)
/source/blender/nodes/NOD_node_declaration.hh (+82, -16) (Diff)
/source/blender/nodes/NOD_socket_declarations.hh (+116, -104) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021