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
Notes: blender-bot 2023-02-14 05:50:03 +01:00
Referenced by issue #83916, Node editor (shader): framed node do not allow drag route from slot.
1 changed files with 1 additions and 1 deletions

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;
}