-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Examples: Update fflate version #21669
Conversation
@gkjohnson The issue in @marcofugaro It seems const CORRECT = 'Kaydara FBX Binary \0'; was transformed to: const CORRECT = 'Kaydara FBX Binary \0'; Notice that the two spaces after "Binary" were replaced with a tab. This breaks the detection of binary FBX files. I've patched this by using unicode characters which is more robust anyway. However, it's probably better to ensure |
The developer of
Yes, otherwise it's confusing. |
Thanks @Mugen87! That fixed it |
This line needs an update, too.
The editor also imports |
And here:
|
ooh sneaky. I'd just checked in the /jsm folder. Last commit fixes those two lines. |
Unfortunately, the PR is still incomplete. Next to
Line 10 in 58cd930
three.js/editor/js/Menubar.File.js Line 3 in 58cd930
Line 16 in 58cd930
|
@Mugen87 oh yeah, it's because of this line:
I saw your fix in #21671, thank you! I'll see if we can make eslint change spaces to tabs with this rule: https://eslint.org/docs/rules/indent |
@Mugen87 sorry, thanks for the catch. Just updated and I no longer see any references to |
Thanks! |
Related to #21654
Description
See comment here.
This PR updates the fflate file in js/libs and jsm/libs to use the latest esm and umd files from the published package. The new esm variant does not use
require
so it shouldn't cause issues with skypack. I'm not sure where the previous minified fflate module came from but this one is not minified. Perhaps we should change the file name?You can see that the new module version of fflate functions correctly in the fbx example:
https://raw.githack.com/gkjohnson/three.js/fflate-update/examples/webgl_loader_fbx.html
For some reason I'm not able to get the FBX example to work at all when switching it over to use the classic
examples/js/
scripts even before updating fflate. I get an "unknown format" error -- am I missing a step here?cc @Mugen87 @donmccurdy