Closed beersandrew closed 1 month ago
Would it be possible to go back to the formatted version of the file?
Like this I can't really understand the changes: https://github.com/needle-tools/usd-viewer/pull/15/files#diff-eaca4b0557887de7c727d9ff3fee5dbb57c40a95267fc1277f2f792dadd1d905
Would it be possible to go back to the formatted version of the file?
Like this I can't really understand the changes: https://github.com/needle-tools/usd-viewer/pull/15/files#diff-eaca4b0557887de7c727d9ff3fee5dbb57c40a95267fc1277f2f792dadd1d905
I will try. there are two things that make that awkward for now:
I will:
@hybridherbst is there that you added other than the 2 parts below.
moduleArg = {
// module overrides can be supplied here
locateFile: (path, prefix) => {
if (!prefix) prefix = _scriptDir.substr(0, _scriptDir.lastIndexOf('/') + 1);
return prefix + path;
},
...args
}
Module["FS_readdir"]=FS.readdir;
Module["FS_analyzePath"]=FS.analyzePath;
Unfortunately i guess this first diff is not going to be very useful, but now future diffs should be better. sorry about that
Yup I think it's 29329896c9335c4a3ba6b8e1092b79bfebaad5b7 and a combination of f50f71707760f099eea14c15ddd0388503453076 and what we did while in the call to get the package to work with a bundler
I think if formatting is always the same it should also be relatively easy to spot what has changed in emHdBindings.js
; in the past I also just rebased my changes on the new (formatted) version and that usually works fine (git can figure it out)
Also I think when I first formatted it it was just the regular prettier package that comes with VS Code I believe b63c75307b41ce248ed7415ec65113fbf4f053d1
Cool I think this branch is ready then
Thank you, merged!
There is one follow-up issue: Currently loading a file with an error leads to an Abort and subsequently I can't load other files anymore. Is this something that we can avoid? Steps:
Aborted
errors being logged
wasm changes here: https://github.com/beersandrew/USD/commit/ff1b0a4e593ea87d17096009cdbdb5d5a90b8073