Blender Git Loki

Git Commits -> Revision fdd41ac

Revision fdd41ac by Hans Goudey (master)
December 14, 2021, 16:56 (GMT)
Cleanup: Simplify node group input and output socket verification

This commit refactors the way the socket lists for group nodes,
and group input/output nodes are verified to match the group's
interface.

Previously the `bNodeSocket.new_sock` pointer was used to
temporarily mark the new sockets. This made the code confusing
and more complicated than necessary.

Now the old socket list is saved, and sockets are moved directly from
the old list to a new list if they match, or a new socket is created
directly in the new list.

This change is split from D13518, which aims to remove the `new_node`
and `new_sock` pointers. In the future this code might be removed
entirely in favor of using node socket declarations.

Differential Revision: https://developer.blender.org/D13543

Commit Details:

Full Hash: fdd41ac49ee411d0fe4b49d8db8a0b2eb6d20da9
Parent Commit: f5ce243
Lines Changed: +79, -82

1 Modified Path:

/source/blender/nodes/intern/node_common.cc (+79, -82) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021