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

Always call _can_handle() before _parse_property() #86467

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Dec 23, 2023

Some custom inspectors, like array inspector or TileSet inspector, used instantiate_property_editor(), which had a different path for handling properties that did not use can_handle(). This PR adds a proper check and also prevents passing null as object for the method (as it can lead to crash when checking class).

Fixes #71236

@KoBeWi KoBeWi added this to the 4.3 milestone Dec 23, 2023
@KoBeWi KoBeWi changed the title Always call _can_handle() before _parse_property() Always call _can_handle() before _parse_property() Apr 26, 2024
@akien-mga
Copy link
Member

Needs a rebase.

@KoBeWi KoBeWi force-pushed the aliens_in_my_inspector branch from 6f1c784 to f0da5ca Compare June 26, 2024 11:16
@akien-mga akien-mga merged commit 783c99d into godotengine:master Jun 26, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the aliens_in_my_inspector branch June 26, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants