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: skip object != null check in entity instance inspector #183

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

russmatney
Copy link
Contributor

It seems that when an array is exported, the object comes through as 'null', but allowing the code to continue here seems to work fine. The above can_handle impl already checks to be sure the pandora entities are not null.

Fixes #131.

Much thanks to @shomykohai for researching the related engine code: https://github.com/godotengine/godot/blob/6a13fdcae3662975c101213d47a1eb3a7db63cb3/editor/editor_inspector.cpp#L2600-L2603

It seems that when an array is exported, the `object` comes through as
'null', but allowing the code to continue here seems to work fine. The
above `can_handle` impl already checks to be sure the pandora entities
are not null.

Fixes bitbrain#131.

Much thanks to @shomykohai for researching the related engine code: https://github.com/godotengine/godot/blob/6a13fdcae3662975c101213d47a1eb3a7db63cb3/editor/editor_inspector.cpp#L2600-L2603
Copy link
Owner

@bitbrain bitbrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Thanks for this.

@bitbrain bitbrain merged commit a4dcc34 into bitbrain:godot-4.x Jul 5, 2024
2 checks passed
@russmatney russmatney deleted the rm/support-array-exports branch July 5, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Array exports
2 participants