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

Upgrade to latest threejs (r164) #4787

Merged
merged 2 commits into from
May 29, 2024
Merged

Upgrade to latest threejs (r164) #4787

merged 2 commits into from
May 29, 2024

Conversation

aardvarkk
Copy link
Contributor

Reference Issue

Fixes #4786

Copy link

google-cla bot commented May 21, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Collaborator

@elalish elalish left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -446,7 +446,7 @@ configuration or device capabilities');
model.position.copy(target.position);
model.updateWorldMatrix(false, true);

const arraybuffer = await exporter.parse(model);
const arraybuffer = await exporter.parseAsync(model);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, I believe there's another exporter.parse in scene-graph.ts as well - could you update that as well for consistency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'll take a look.

Copy link
Contributor Author

@aardvarkk aardvarkk May 29, 2024

Choose a reason for hiding this comment

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

@elalish I don't believe the call in scene-graph.ts needs to be altered as it's using the callback-based version of parse. parse previously used to support both a callback and Promise-based overload, but now the asynchronous version is called parseAsync. ar.ts await-ed the return, so it needed to be adjusted to use the new async version, but the call to parse in scene-graph.ts is callback-based.

Copy link
Collaborator

Choose a reason for hiding this comment

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

okay, thanks.

@elalish elalish merged commit 70c119a into google:master May 29, 2024
3 checks passed
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.

Upgrade to latest version of threejs (r164.1)
2 participants