-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
Fix GLTFExporter when exporting in GLTF with OffscreenCanvas #24031
Conversation
And simplify promises
Does the fact that FF currently doesn't support offscreenCanvas need documenting? |
I believe the underlying issue was fixed by #24035, let me know if that's incorrect. Thanks! |
@donmccurdy No, it wasn't fixed (it is still possible to export a scene to GLTF in a web worker with OffscreenCanvas). |
@LeviPesin Sorry, do you mind doing a new PR? |
@mrdoob But what is wrong with this one? |
I think similar parts of the file have changed since you created this PR? |
But there were not any merge conflicts, this PR still works. |
I see... Sorry, it's hard to see what's going on... |
So much better! 🙏 |
Thanks! |
Does this deserve a |
I think it is a considerably rare use case, so it can wait until r141... |
…24031) * Fix GLTFExporter when exporting in GLTF with OffscreenCanvas And simplify promises * Remove identation before `.then()` * Get `toBlobPromise` from a function * Move `getToBlobPromise` function * Fix `getToBlobPromise` * Clean up. Co-authored-by: mrdoob <[email protected]>
Related issue: #24024
Description
Fix GLTFExporter when exporting in GLTF with OffscreenCanvas and also simplify promises.