diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-25 10:31:57 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-25 10:31:57 +0200 |
commit | 3f9af43e73ea99694e0bd9907f8ece6209fedb57 (patch) | |
tree | 0dc360b2e9568ff7c68c3bbe15a63d5b3ded2334 /scene/gui/graph_node.cpp | |
parent | ea8b773f9319705195086d56991d1662ba8a596b (diff) | |
parent | 9391046c325e53886eac5ad430ee51ed8ac8f14c (diff) | |
download | redot-engine-3f9af43e73ea99694e0bd9907f8ece6209fedb57.tar.gz |
Merge pull request #83892 from Geometror/fix-gn-slot-index
Fix GraphNode slot index inconsistency.
Diffstat (limited to 'scene/gui/graph_node.cpp')
-rw-r--r-- | scene/gui/graph_node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp index fdebca3d28..3b1c1a153f 100644 --- a/scene/gui/graph_node.cpp +++ b/scene/gui/graph_node.cpp @@ -620,7 +620,7 @@ void GraphNode::_port_pos_update() { port_cache.pos = Point2i(edgeofs, vertical_ofs + size.height / 2); port_cache.type = slot_table[i].type_left; port_cache.color = slot_table[i].color_left; - port_cache.slot_index = child->get_index(); // Index with internal nodes included. + port_cache.slot_index = child->get_index(false); left_port_cache.push_back(port_cache); } if (slot_table[i].enable_right) { @@ -628,7 +628,7 @@ void GraphNode::_port_pos_update() { port_cache.pos = Point2i(get_size().width - edgeofs, vertical_ofs + size.height / 2); port_cache.type = slot_table[i].type_right; port_cache.color = slot_table[i].color_right; - port_cache.slot_index = child->get_index(); // Index with internal nodes included. + port_cache.slot_index = child->get_index(false); right_port_cache.push_back(port_cache); } } |