From e6583117df95373cffb12105de82d3816ca09f85 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 11 Jan 2017 08:53:31 -0300 Subject: Both Array and Dictionary are always in shared mode (removed copy on write). --- core/io/resource_format_binary.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/io/resource_format_binary.cpp') diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp index 7383fd7f6..c093b087b 100644 --- a/core/io/resource_format_binary.cpp +++ b/core/io/resource_format_binary.cpp @@ -426,7 +426,7 @@ Error ResourceInteractiveLoaderBinary::parse_variant(Variant& r_v) { case VARIANT_DICTIONARY: { uint32_t len=f->get_32(); - Dictionary d(len&0x80000000); //last bit means shared + Dictionary d; //last bit means shared len&=0x7FFFFFFF; for(uint32_t i=0;iget_32(); - Array a(len&0x80000000); //last bit means shared + Array a; //last bit means shared len&=0x7FFFFFFF; a.resize(len); for(uint32_t i=0;istore_32(VARIANT_DICTIONARY); Dictionary d = p_property; - f->store_32(uint32_t(d.size())|(d.is_shared()?0x80000000:0)); + f->store_32(uint32_t(d.size())); List keys; d.get_key_list(&keys); @@ -1721,7 +1721,7 @@ void ResourceFormatSaverBinaryInstance::write_variant(const Variant& p_property, f->store_32(VARIANT_ARRAY); Array a=p_property; - f->store_32(uint32_t(a.size())|(a.is_shared()?0x80000000:0)); + f->store_32(uint32_t(a.size())); for(int i=0;i