Blender Git Commit Log

Git Commits -> Revision da9e506

Revision da9e506 by Hans Goudey (temp-gpu-image-engine)
December 15, 2021, 13:37 (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: da9e50646ceb0f6c3fc9ff8fbfc9107746e2759a
Parent Commit: 3206397
Committed By: Jeroen Bakker
Lines Changed: +79, -82

1 Modified Path:

/source/blender/nodes/intern/node_common.cc (+79, -82) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021