Browse Source

GLTFExporter: Include three.js version in generator string (#28137)

Don McCurdy 1 year ago
parent
commit
361f301ccc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      examples/jsm/exporters/GLTFExporter.js

+ 2 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -26,6 +26,7 @@ import {
 	Quaternion,
 } from 'three';
 import { decompress } from './../utils/TextureUtils.js';
+import { REVISION } from '../../../src/constants.js';
 
 
 /**
@@ -502,7 +503,7 @@ class GLTFWriter {
 		this.json = {
 			asset: {
 				version: '2.0',
-				generator: 'THREE.GLTFExporter'
+				generator: 'THREE.GLTFExporter r' + REVISION
 			}
 		};