diff --git a/core/io/resource.cpp b/core/io/resource.cpp index ec30dbe161e..f2ecdba930b 100644 --- a/core/io/resource.cpp +++ b/core/io/resource.cpp @@ -298,6 +298,12 @@ Variant Resource::_duplicate_recursive(const Variant &p_variant, const Duplicate DEV_ASSERT(false); } } + if (should_duplicate) { + Ref