X Tutup
Skip to content

Don't check resource type assigned in property#84446

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
KoBeWi:EditorYOLOPicker
Apr 26, 2024
Merged

Don't check resource type assigned in property#84446
akien-mga merged 1 commit intogodotengine:masterfrom
KoBeWi:EditorYOLOPicker

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
@akien-mga
Copy link
Member

Thanks!

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

X Tutup