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

Support _validate_property() #1239

Merged

Conversation

dsnopek
Copy link
Collaborator

@dsnopek dsnopek commented Sep 10, 2023

This is the companion PR to Godot PR godotengine/godot#81515

It allows object classes in GDExtension to implement _validate_property() to alter properties.

It includes a unit test that verifies that this functionality actually works!

@dsnopek dsnopek added the enhancement This is an enhancement on the current functionality label Sep 10, 2023
@dsnopek dsnopek added this to the 4.2 milestone Sep 10, 2023
@dsnopek dsnopek requested a review from a team as a code owner September 10, 2023 15:06
@dsnopek dsnopek force-pushed the gdextension-validate-property-object branch from 3eb594f to 255e28e Compare September 10, 2023 15:15
@dsnopek
Copy link
Collaborator Author

dsnopek commented Sep 10, 2023

Per usual, this won't pass tests on CI until after the Godot PR is merged, but it is passing for me locally. I'll be sure to re-run the CI at that point, so we can be sure all is good!

@dsnopek dsnopek force-pushed the gdextension-validate-property-object branch from 255e28e to efc9836 Compare September 12, 2023 15:37
@dsnopek
Copy link
Collaborator Author

dsnopek commented Sep 12, 2023

CI is passing now!

It'd be really great if someone could review this, since the Godot PR has already been merged, and until this one is merged, godot-cpp master will be incompatible with Godot master.

test/project/main.gd Outdated Show resolved Hide resolved
Copy link
Member

@rburing rburing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks reasonable and the tests pass.

@dsnopek dsnopek force-pushed the gdextension-validate-property-object branch from efc9836 to aa6867e Compare September 12, 2023 18:21
@akien-mga akien-mga merged commit 6caf490 into godotengine:master Sep 13, 2023
11 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement on the current functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants