From 104c77cd86534dd849b7975adbe4cd7416860032 Mon Sep 17 00:00:00 2001 From: Hendrik Brucker Date: Sat, 6 Jul 2024 14:33:34 +0200 Subject: [PATCH] Fix connections not updated after GraphNode slot update --- scene/gui/graph_edit.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 429fb2e64f4..55a2c607e3d 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -546,6 +546,11 @@ void GraphEdit::_graph_node_slot_updated(int p_index, Node *p_node) { GraphNode *graph_node = Object::cast_to(p_node); ERR_FAIL_NULL(graph_node); + // Update all adjacent connections during the next redraw. + for (const Ref &conn : connection_map[graph_node->get_name()]) { + conn->_cache.dirty = true; + } + minimap->queue_redraw(); queue_redraw(); connections_layer->queue_redraw();