瀏覽代碼

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

Don McCurdy 1 年之前
父節點
當前提交
361f301ccc
共有 1 個文件被更改,包括 2 次插入1 次删除
  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
 			}
 		};