This commit moves the property layout callbacks for node types to their
implementation files from drawnode.c. This was proposed a while ago in
T75724.
Benefits
- Fewer files need to be changed when adding a new node.
- Makes it possible to reuse functions from the node's implementation in the layout code.
- Except for RNA, all of the node "inputs" are in the same place.
- Code gets shorter overall, avoids the large switch statements.
Downsides
- Requires including two UI headers.
- Requires adding an editors dependency to the nodes folder.
I've only changed function nodes and geometry nodes for now.
I can do more in the future if this is accepted.