Skip to content

Use property usage flags for metadata properties - #124580

Open
NoctemCat wants to merge 1 commit into
godotengine:masterfrom
NoctemCat:metadata_use_property_usage
Open

NoctemCat wants to merge 1 commit into
godotengine:masterfrom
NoctemCat:metadata_use_property_usage

Conversation

@NoctemCat

Copy link
Copy Markdown
Contributor

What problem(s) does this PR solve?

I guess logic correctness, also simplifies the editor inspector conditions.

Additional information

While working on other PR I noticed that metadata's PropertyInfo usage is always PROPERTY_USAGE_DEFAULT and it had a dedicated check to skip it in the editor. And seeing that metadatas are treated as normal-ish dynamic properties it felt wrong that PROPERTY_USAGE_DEFAULT property is hidden by special handling. This PR fixes the inconsistency.

No AI used.

@NoctemCat
NoctemCat requested review from a team as code owners October 17, 2026 16:21
@KoBeWi KoBeWi added this to the 4.x milestone Oct 17, 2026
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.

2 participants