Merge pull request #13132 from Chaosus/preserve_dupsignals_flags

Preserve duplicate signal flags
This commit is contained in:
Rémi Verschelde 2017-11-21 14:25:50 +01:00 committed by GitHub
commit 25b860ee2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}
}