-
Notifications
You must be signed in to change notification settings - Fork 130
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
Arbitrary Extension API #395
Conversation
The reason was due to complexity. Raw value requires you to reference it in a data structure as a borrowed value, this causes some problems with some of the attributes on the data structures. I could probably figure it out but I simply went with the regular Value. Also, the majority of the time, when you are using one extension, you're usually using all the extensions. Also, for actual use, with RawValue, you'd have to store the serialized data yourself. Meaning if you want to pass the gltf to a function with all its extensions, you'd need a structure that can store all the extensions, which would be a huge pain. This makes it so that all the data is in one data structure, making it much easier in use API wise. If I have some free time this week, I'll make a branch and try implementing this using RawValue |
So I looked into it, as far as I can tell I don't believe there's a way we can mix flatten and raw value, it seems flatten will only accept a Edit: thinking about it we could probably still support the extensions natively, but it would require a pretty decently sized rewrite to the way we're serializing extensions currently. |
Thanks for taking a look. If that's the case then it's not worth overhauling everything for it. Let's use the owned |
Fixes #231
You can enable it with the
extensions
feature flagYou can access the extensions in the following manner: