Blender Git Loki
Git Commits -> Revision e31d656
Revision e31d656 by Jacques Lucke (temp-ui-tweaks) September 22, 2021, 13:54 (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: e31d6560a263f991924c67153d2647938f4c27ef
Parent Commit: aeeb7c8
Committed By: Pablo Vazquez
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)
/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)