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", "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",

View File

@ -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++) {

View File

@ -81,19 +81,9 @@ 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);
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 ();
} }
} }
}
}, },
createElement : function (type) { createElement : function (type) {
return { return {