Explorar o código

Merge pull request #13132 from Chaosus/preserve_dupsignals_flags

Preserve duplicate signal flags
Rémi Verschelde %!s(int64=7) %!d(string=hai) anos
pai
achega
25b860ee2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/main/node.cpp

+ 1 - 1
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);
 			}
 		}
 	}