summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2017-11-21 11:46:19 +0300
committerChaosus <chaosus89@gmail.com>2017-11-21 11:46:19 +0300
commitfc74dbabd54ae36a24641a95734adb2e3df47162 (patch)
tree772734bb863dfeaac0cd86a66c9f48160632c49d
parentc846e49a7d3439d9aef5d499ad403304d89a3b3c (diff)
Preserve duplicate signal flags
-rwxr-xr-xscene/main/node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 253084dd99..01e11962ff 100755
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -2305,7 +2305,7 @@ void Node::_duplicate_signals(const Node *p_original, Node *p_copy) const {
copytarget = target;
if (copy && copytarget) {
- copy->connect(E->get().signal, copytarget, E->get().method, E->get().binds, CONNECT_PERSIST);
+ copy->connect(E->get().signal, copytarget, E->get().method, E->get().binds, E->get().flags);
}
}
}