Browse Source

Type of exported typed array can be external resource

Jordyfel 1 year ago
parent
commit
82de00a174
2 changed files with 2 additions and 0 deletions
  1. 1 0
      core/io/resource_format_binary.cpp
  2. 1 0
      scene/resources/resource_format_text.cpp

+ 1 - 0
core/io/resource_format_binary.cpp

@@ -2016,6 +2016,7 @@ void ResourceFormatSaverBinaryInstance::_find_resources(const Variant &p_variant
 
 		case Variant::ARRAY: {
 			Array varray = p_variant;
+			_find_resources(varray.get_typed_script());
 			int len = varray.size();
 			for (int i = 0; i < len; i++) {
 				const Variant &v = varray.get(i);

+ 1 - 0
scene/resources/resource_format_text.cpp

@@ -1951,6 +1951,7 @@ void ResourceFormatSaverTextInstance::_find_resources(const Variant &p_variant,
 		} break;
 		case Variant::ARRAY: {
 			Array varray = p_variant;
+			_find_resources(varray.get_typed_script());
 			int len = varray.size();
 			for (int i = 0; i < len; i++) {
 				const Variant &v = varray.get(i);