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

Fix can't unset exported typed array element when the type is set to Node #82287

Conversation

jsjtxietian
Copy link
Contributor

@jsjtxietian jsjtxietian commented Sep 25, 2023

Fixes #82034

The code failed at ERR_FAIL_COND(!_p->typed.validate(value, "set")) , NodePath can't be set to a TypedArray of type 'Object'.

I guess the easy way to fix this is what this pr did, make _node_clear emit an empty variant instead of an empty node_path. But it might has unexpected impacts, I would appreciate any feedback or alternative suggestions.

@akien-mga akien-mga added this to the 4.2 milestone Sep 25, 2023
@akien-mga akien-mga requested a review from a team September 25, 2023 07:40
@akien-mga akien-mga merged commit 563d225 into godotengine:master Sep 26, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@jsjtxietian jsjtxietian deleted the fix-clear-error-when-unset-exported-typed-array-vai-editor branch October 18, 2023 03:15
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.

Can't unset values in exported typed array (of type node) via the editor
2 participants