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

Make Animation::capture_included read-only #95377

Conversation

raulsntos
Copy link
Member

The PROPERTY_USAGE_READ_ONLY flag only makes the property read-only in the inspector, but the property also has the PROPERTY_USAGE_NO_EDITOR flag which means it won't show up in the inspector. So it does nothing, while still making it editable from scripting.

To make it read-only for scripting too, this PR removes the setter from the PropertyInfo. And since the set_capture_included method is now unused, it was also removed.

The `PROPERTY_USAGE_READ_ONLY` flag only makes the property read-only in the inspector, but the property also has the `PROPERTY_USAGE_NO_EDITOR` flag which means it won't show up in the inspector. So it does nothing, while still making it editable from scripting.

To make it read-only for scripting too, this PR removes the setter from the `PropertyInfo`. And since the `set_capture_included` method is now unused, it was also removed.
@akien-mga akien-mga modified the milestones: 4.x, 4.3 Aug 11, 2024
@akien-mga
Copy link
Member

akien-mga commented Aug 11, 2024

This property is new in 4.3, so the compat breakage is only internal to 4.3 pre-relesse versions if we merge this before 4.3-stable.

@akien-mga akien-mga merged commit ece2e6d into godotengine:master Aug 12, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@raulsntos raulsntos deleted the gdextension/expose-property-accessors/Animation branch August 12, 2024 17:31
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