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

Move GLTFAccessorType into GLTFAccessor #93920

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

aaronfranke
Copy link
Member

Follow-up to PR #90560. Should be merged for 4.3.

Apologies for the last minute 4.3 PR, but I was working on implementing the glTF object model in Godot and I noticed that in order to bind this enum to a method it has to exist inside of a class. If I try to do this outside of the class, the class reference that ends up generated is incorrect.

Then I realized I should also use the enum for the existing accessor_type property. However, changing the type of a property breaks compatibility, so changing this property breaks compatibility as of #90560, which was merged in Godot 4.3, but it does not break compatibility since Godot 4.2, so we can still improve this before Godot 4.3 is released.

This PR also adds detailed documentation for the accessor types including how they map to the glTF object model.

Copy link
Contributor

@lyuma lyuma left a comment

Choose a reason for hiding this comment

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

Looks good.

I would just double check how to deal with deprecated properties. I think PROPERTY_USAGE_NONE is correct for those.

modules/gltf/structures/gltf_accessor.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit 77dfb42 into godotengine:master Jul 5, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the gltf-accessor-type branch July 5, 2024 21:43
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.

5 participants