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

Prevent nested packedArray from being casted to generic Arrays #76114

Merged

Conversation

ajreckof
Copy link
Member

Fixes #76113

@fire fire changed the title prevent nested packedArray from being casted to generic Arrays Prevent nested packedArray from being casted to generic Arrays Apr 17, 2023
@YuriSizov YuriSizov added this to the 4.1 milestone Apr 18, 2023
@YuriSizov YuriSizov requested a review from a team April 18, 2023 13:15
@YuriSizov
Copy link
Contributor

Does this still work correctly with regular and typed arrays?

@ajreckof
Copy link
Member Author

ajreckof commented Apr 18, 2023

Yes this change only remove a forced cast from packed arrays to array
What I do here is what is done on all other places of EditorPropertyArray.

@akien-mga akien-mga merged commit df0ad75 into godotengine:master Apr 18, 2023
@akien-mga
Copy link
Member

Thanks!

@KoBeWi
Copy link
Member

KoBeWi commented Apr 23, 2023

Does this still work correctly with regular and typed arrays?

It doesn't work with typed arrays.

akien-mga pushed a commit to akien-mga/godot that referenced this pull request May 31, 2023
Fixes to changes from godotengine#76114.

This PR remove the hack with pointer and replace it with a proper handling
from EditorPropertyNodePath of both NodePath and Node. Also needed to revise
a bit the saving and loading of scene to handle properly the change.

Fixes godotengine#74050.
Fixes godotengine#74141.
Fixes godotengine#75981.
Fixes godotengine#76642.

Revert "Fix typed array export... again"

This reverts commit da8d673.

Co-Authored-By: Tomek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nested Packed Arrays serialize as a generic Array once a value inside is edited
4 participants