Skip to content

Commit

Permalink
Merge pull request #14473 from sebavan/master
Browse files Browse the repository at this point in the history
Fix gltf validator url
  • Loading branch information
sebavan committed Oct 28, 2023
2 parents 062d713 + ae09fe5 commit 45e5ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dev/loaders/src/glTF/glTFValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ export class GLTFValidation {
worker.addEventListener("error", onError);
worker.addEventListener("message", onMessage);

worker.postMessage({ id: "init", url: this.Configuration.url });
worker.postMessage({ id: "init", url: Tools.GetBabylonScriptURL(this.Configuration.url) });
worker.postMessage({ id: "validate", data: dataCopy, rootUrl: rootUrl, fileName: fileName });
});
} else {
if (!this._LoadScriptPromise) {
this._LoadScriptPromise = Tools.LoadScriptAsync(this.Configuration.url);
this._LoadScriptPromise = Tools.LoadBabylonScriptAsync(this.Configuration.url);
}

return this._LoadScriptPromise.then(() => {
Expand Down

0 comments on commit 45e5ffb

Please sign in to comment.