Skip to content

Commit

Permalink
Merge pull request #85024 from Jordyfel/moving-scripts-of-types-of-ex…
Browse files Browse the repository at this point in the history
…ported-typed-arrays

When saving a resource with an exported typed array, check whether the type is an external resource
  • Loading branch information
akien-mga committed Apr 9, 2024
2 parents f8ca571 + 82de00a commit bff6955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/io/resource_format_binary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions scene/resources/resource_format_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bff6955

Please sign in to comment.