Fix T83916: Cannot drag link from socket if node is inside frame

Caused by rB7470c10601d0 where iterating nodetree nodes was changed from
backwards to forwards by mistake.

Maniphest Tasks: T83916

Differential Revision: https://developer.blender.org/D9890
This commit is contained in:
Philipp Oeser
2020-12-18 10:35:08 +01:00
parent 95afc53604
commit f3b50380f0

View File

@@ -854,7 +854,7 @@ static void edit_node_properties_get(
/* is rct in visible part of node? */
static bNode *visible_node(SpaceNode *snode, const rctf *rct)
{
LISTBASE_FOREACH (bNode *, node, &snode->edittree->nodes) {
LISTBASE_FOREACH_BACKWARD (bNode *, node, &snode->edittree->nodes) {
if (BLI_rctf_isect(&node->totr, rct, NULL)) {
return node;
}