Remove draco tests.

This commit is contained in:
kovacsv 2024-04-27 14:33:29 +02:00
parent 8268cacd25
commit 130e527af3
3 changed files with 3 additions and 15 deletions

View File

@ -70,8 +70,7 @@
"rollup": "^4.0.2",
"run-python3": "^0.0.5",
"svgo": "^3.0.2",
"typescript": "^5.0.4",
"draco3d": "1.5.7"
"typescript": "^5.0.4"
},
"dependencies": {
"@simonwep/pickr": "1.9.0",

View File

@ -66,8 +66,7 @@ describe ('Gltf Importer', function () {
let testFileList = [
['Box/glTF', 'Box.gltf'],
['Box/glTF-Embedded', 'Box.gltf'],
['Box/glTF-Binary', 'Box.glb'],
['Box/glTF-Draco', 'Box.gltf']
['Box/glTF-Binary', 'Box.glb']
];
let processed = 0;
for (let i = 0; i < testFileList.length; i++) {

View File

@ -81,17 +81,7 @@ export function SetGlobals ()
head : {
appendChild : function (element) {
if (element.type === 'text/javascript') {
console.log (element.src);
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 ();
}
element.onerror ();
}
}
},