Remove draco tests.
This commit is contained in:
parent
8268cacd25
commit
130e527af3
@ -70,8 +70,7 @@
|
|||||||
"rollup": "^4.0.2",
|
"rollup": "^4.0.2",
|
||||||
"run-python3": "^0.0.5",
|
"run-python3": "^0.0.5",
|
||||||
"svgo": "^3.0.2",
|
"svgo": "^3.0.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.0.4"
|
||||||
"draco3d": "1.5.7"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simonwep/pickr": "1.9.0",
|
"@simonwep/pickr": "1.9.0",
|
||||||
|
|||||||
@ -66,8 +66,7 @@ describe ('Gltf Importer', function () {
|
|||||||
let testFileList = [
|
let testFileList = [
|
||||||
['Box/glTF', 'Box.gltf'],
|
['Box/glTF', 'Box.gltf'],
|
||||||
['Box/glTF-Embedded', 'Box.gltf'],
|
['Box/glTF-Embedded', 'Box.gltf'],
|
||||||
['Box/glTF-Binary', 'Box.glb'],
|
['Box/glTF-Binary', 'Box.glb']
|
||||||
['Box/glTF-Draco', 'Box.gltf']
|
|
||||||
];
|
];
|
||||||
let processed = 0;
|
let processed = 0;
|
||||||
for (let i = 0; i < testFileList.length; i++) {
|
for (let i = 0; i < testFileList.length; i++) {
|
||||||
|
|||||||
@ -81,17 +81,7 @@ export function SetGlobals ()
|
|||||||
head : {
|
head : {
|
||||||
appendChild : function (element) {
|
appendChild : function (element) {
|
||||||
if (element.type === 'text/javascript') {
|
if (element.type === 'text/javascript') {
|
||||||
console.log (element.src);
|
element.onerror ();
|
||||||
if (element.src.indexOf ('draco_decoder_nodejs.min.js') !== -1) {
|
|
||||||
import ('draco3d').then (mod => {
|
|
||||||
global.DracoDecoderModule = function () {
|
|
||||||
return mod.createDecoderModule ();
|
|
||||||
};
|
|
||||||
element.onload ();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
element.onerror ();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user