You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Fix duplicating nodes with Array properties
This commit is contained in:
@@ -2907,9 +2907,8 @@ void Node::_duplicate_properties(const Node *p_root, const Node *p_original, Nod
|
|||||||
arr[i] = p_copy->get_node_or_null(p_original->get_path_to(property_node));
|
arr[i] = p_copy->get_node_or_null(p_original->get_path_to(property_node));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
value = arr;
|
|
||||||
p_copy->set(name, value);
|
|
||||||
}
|
}
|
||||||
|
p_copy->set(name, arr);
|
||||||
} else {
|
} else {
|
||||||
p_copy->set(name, value);
|
p_copy->set(name, value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user