Skip to content

Commit

Permalink
Merge pull request godotengine#93999 from Geometror/fix-slot-change-r…
Browse files Browse the repository at this point in the history
…edraw

Fix connections not updated after GraphNode slot update
  • Loading branch information
akien-mga committed Jul 7, 2024
2 parents 080b975 + 104c77c commit 92880e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scene/gui/graph_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,11 @@ void GraphEdit::_graph_node_slot_updated(int p_index, Node *p_node) {
GraphNode *graph_node = Object::cast_to<GraphNode>(p_node);
ERR_FAIL_NULL(graph_node);

// Update all adjacent connections during the next redraw.
for (const Ref<Connection> &conn : connection_map[graph_node->get_name()]) {
conn->_cache.dirty = true;
}

minimap->queue_redraw();
queue_redraw();
connections_layer->queue_redraw();
Expand Down

0 comments on commit 92880e1

Please sign in to comment.