Avoid copying a signal with a Node if the target path is empty
This commit is contained in:
@ -2985,7 +2985,11 @@ void Node::_duplicate_signals(const Node *p_original, Node *p_copy) const {
|
||||
if (!target) {
|
||||
continue;
|
||||
}
|
||||
|
||||
NodePath ptarget = p_original->get_path_to(target);
|
||||
if (ptarget.is_empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Node *copytarget = target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user