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

Add ModelLoader to bitecs #5953

Merged
merged 2 commits into from
Mar 16, 2023
Merged

Add ModelLoader to bitecs #5953

merged 2 commits into from
Mar 16, 2023

Conversation

takahirox
Copy link
Contributor

This PR adds ModelLoader inflator for glTF model component.

Copy link
Contributor

@netpro2k netpro2k left a comment

Choose a reason for hiding this comment

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

This LGTM other than the resize/recenter settings

}

export function inflateModelLoader(world: HubsWorld, eid: number, params: ModelLoaderParams) {
inflateMediaLoader(world, eid, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on the old defaults https://github.com/mozilla/hubs/blob/aaa4584a822545a8ea998c3c14edc62078fb542b/src/gltf-component-mappings.js#L267-L275 I think resize and recenter should be true. Technically models like this had an object menu too, though it was a restricted one with only "open link", "refrresh" , "inspect', and "focus" - I don't think its particularly important to preserve that.

This commit adds ModelLoader inflator for glTF model component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants