Browse Source

add generator info to glb

Sukolsak Sakshuwong 3 years ago
parent
commit
e407f7279b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/extensions/geo-export/glb-exporter.ts

+ 3 - 1
src/extensions/geo-export/glb-exporter.ts

@@ -8,6 +8,7 @@ import { BaseValues } from '../../mol-gl/renderable/schema';
 import { asciiWrite } from '../../mol-io/common/ascii';
 import { IsNativeEndianLittle, flipByteOrder } from '../../mol-io/common/binary';
 import { Vec3, Mat4 } from '../../mol-math/linear-algebra';
+import { PLUGIN_VERSION } from '../../mol-plugin/version';
 import { RuntimeContext } from '../../mol-task';
 import { Color } from '../../mol-util/color/color';
 import { arrayMinMax, fillSerial } from '../../mol-util/array';
@@ -322,7 +323,8 @@ export class GlbExporter extends MeshExporter<GlbData> {
 
         const gltf = {
             asset: {
-                version: '2.0'
+                version: '2.0',
+                generator: `Mol* ${PLUGIN_VERSION}`
             },
             scenes: [{
                 nodes: fillSerial(new Array(this.nodes.length) as number[])