From 12b4e232b279161afbc6b0f6805f49f6f0d91074 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 10 Nov 2017 21:06:34 -0500 Subject: [PATCH] fix signals disconnecting on changing target node type --- scene/main/node.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 1889c09d9e8..d38c688241c 100755 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2411,7 +2411,9 @@ void Node::_replace_connections_target(Node *p_new_target) { if (c.flags & CONNECT_PERSIST) { c.source->disconnect(c.signal, this, c.method); - ERR_CONTINUE(!p_new_target->has_method(c.method)); + bool valid = p_new_target->has_method(c.method) || p_new_target->get_script().is_null() || Ref