Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed array initialized with same values in 2 different instances sharing the same reference #93986

Open
KUEII opened this issue Jul 6, 2024 · 1 comment

Comments

@KUEII
Copy link

KUEII commented Jul 6, 2024

Tested versions

  • Reproducible in: v4.2.stable, v4.2.2.stable

System information

Godot v4.2.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 31.0.15.3699) - Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 Threads)

Issue description

As the title described, typed arrays initialized with same value in 2 different node of different instanced scenes seems to have same reference of the array. When modifying elements in one array, the other also gets modified. If the arrays are initialized with different values in the inspector, then it works properly.

This behaviour is very annoying since i cannot modify components that have the same initialized values. One possible workaround would be using non-typed array, which also works fine in my case.

Steps to reproduce

Run MRP and inspect console output

Minimal reproduction project (MRP)

Test.zip

@dalexeev
Copy link
Member

dalexeev commented Jul 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants