diff --git a/docs/assets/js/x3d-file-converter.js b/docs/assets/js/x3d-file-converter.js index 889f9859b4..06a68280e7 100644 --- a/docs/assets/js/x3d-file-converter.js +++ b/docs/assets/js/x3d-file-converter.js @@ -74,10 +74,16 @@ async function convert (encoding, files) await Browser .loadURL (new X3D .MFString (url)); - Browser .currentScene .setMetaData ("generator", `${Browser .name} V${Browser .version}, ${Browser .providerURL}`); - Browser .currentScene .setMetaData ("modified", new Date () .toUTCString ()); + const + scene = Browser .currentScene, + generator = scene .getMetaData ("generator") ?.filter (value => !value .startsWith (Browser .name)) ?? [ ]; + + generator .push (`${Browser .name} V${Browser .version}, ${Browser .providerURL}`); + + scene .setMetaData ("generator", generator); + scene .setMetaData ("modified", new Date () .toUTCString ()); - link (mimeType, file .name .replace (/\.[^.]+$/, "") + extension, output (Browser .currentScene, encoding, file .name)); + link (mimeType, file .name .replace (/\.[^.]+$/, "") + extension, output (scene, encoding, file .name)); } catch (error) {