Merge pull request #114328 from kleonc/node_duplicating_signal_source_node_fix

`CONNECT_APPEND_SOURCE_OBJECT` on signal emission
This commit is contained in:
Rémi Verschelde
2026-01-20 00:22:32 +01:00
6 changed files with 111 additions and 17 deletions
+4 -3
View File
@@ -1668,12 +1668,13 @@ void ConnectionsDock::update_tree() {
if (cd.flags & CONNECT_ONE_SHOT) {
path += " (one-shot)";
}
if (cd.flags & CONNECT_APPEND_SOURCE_OBJECT) {
path += " (source)";
}
if (cd.unbinds > 0) {
path += " unbinds(" + itos(cd.unbinds) + ")";
}
// CONNECT_APPEND_SOURCE_OBJECT is not affected by unbinds, list it between unbinds/binds to better indicate the final order.
if (cd.flags & CONNECT_APPEND_SOURCE_OBJECT) {
path += " (source)";
}
if (!cd.binds.is_empty()) {
path += " binds(";
for (int i = 0; i < cd.binds.size(); i++) {
-5
View File
@@ -84,11 +84,6 @@ public:
unbinds = ccu->get_unbinds();
base_callable = ccu->get_callable();
}
// The source object may already be bound, ignore it to prevent display of the source object.
if ((flags & CONNECT_APPEND_SOURCE_OBJECT) && (source == binds[0])) {
binds.remove_at(0);
}
} else {
base_callable = p_connection.callable;
}