Fixed error when duplicating a scene which has connection

Fixed error when duplicating a scene which has connection

(cherry picked from commit 6afedaa498)
This commit is contained in:
DualMatrix 2018-10-11 01:30:12 +02:00 committed by Rémi Verschelde
parent a7d070d2d5
commit 1a703c3254
1 changed files with 1 additions and 1 deletions

View File

@ -2407,7 +2407,7 @@ void Node::_duplicate_signals(const Node *p_original, Node *p_copy) const {
if (!copytarget) if (!copytarget)
copytarget = target; copytarget = target;
if (copy && copytarget) { if (copy && copytarget && !copy->is_connected(E->get().signal, copytarget, E->get().method)) {
copy->connect(E->get().signal, copytarget, E->get().method, E->get().binds, E->get().flags); copy->connect(E->get().signal, copytarget, E->get().method, E->get().binds, E->get().flags);
} }
} }