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

Don't check resource type assigned in property #84446

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Nov 4, 2023

The resource type is validated when assigning to object, so the check in EditorResourcePicker was redundant. This change makes EditorResourcePickers initialize faster, as the valid types are not checked until you actually try to assign something.

@Zireael07
Copy link
Contributor

Probably needs a code comment so that someone doesn't try to (needlessly) reintroduce the check

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Apr 26, 2024
@akien-mga akien-mga merged commit 8063ea9 into godotengine:master Apr 26, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the EditorYOLOPicker branch April 26, 2024 13:29
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.

3 participants