You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
PropertyUsage: Rename "DO_NOT_SHARE_ON_DUPLICATE" to "ALWAYS_DUPLICATE"
This commit is contained in:
@@ -2213,7 +2213,7 @@ Node *Node::_duplicate(int p_flags, HashMap<const Node *, Node *> *r_duplimap) c
|
||||
|
||||
Variant value = N->get()->get(name).duplicate(true);
|
||||
|
||||
if (E.usage & PROPERTY_USAGE_DO_NOT_SHARE_ON_DUPLICATE) {
|
||||
if (E.usage & PROPERTY_USAGE_ALWAYS_DUPLICATE) {
|
||||
Resource *res = Object::cast_to<Resource>(value);
|
||||
if (res) { // Duplicate only if it's a resource
|
||||
current_node->set(name, res->duplicate());
|
||||
|
||||
Reference in New Issue
Block a user