Merge pull request #85024 from Jordyfel/moving-scripts-of-types-of-exported-typed-arrays
When saving a resource with an exported typed array, check whether the type is an external resource
This commit is contained in:
commit
bff6955459
@ -2016,6 +2016,7 @@ void ResourceFormatSaverBinaryInstance::_find_resources(const Variant &p_variant
|
|||||||
|
|
||||||
case Variant::ARRAY: {
|
case Variant::ARRAY: {
|
||||||
Array varray = p_variant;
|
Array varray = p_variant;
|
||||||
|
_find_resources(varray.get_typed_script());
|
||||||
int len = varray.size();
|
int len = varray.size();
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
const Variant &v = varray.get(i);
|
const Variant &v = varray.get(i);
|
||||||
|
@ -1951,6 +1951,7 @@ void ResourceFormatSaverTextInstance::_find_resources(const Variant &p_variant,
|
|||||||
} break;
|
} break;
|
||||||
case Variant::ARRAY: {
|
case Variant::ARRAY: {
|
||||||
Array varray = p_variant;
|
Array varray = p_variant;
|
||||||
|
_find_resources(varray.get_typed_script());
|
||||||
int len = varray.size();
|
int len = varray.size();
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
const Variant &v = varray.get(i);
|
const Variant &v = varray.get(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user