提交 07c5d9ae 编写于 作者: M Mr.doob

GLTFExporter: Avoid parenting Groups

上级 31ed7930
...@@ -2,6 +2,7 @@ import { ...@@ -2,6 +2,7 @@ import {
BufferAttribute, BufferAttribute,
ClampToEdgeWrapping, ClampToEdgeWrapping,
DoubleSide, DoubleSide,
Group,
InterpolateDiscrete, InterpolateDiscrete,
InterpolateLinear, InterpolateLinear,
LinearFilter, LinearFilter,
...@@ -74,7 +75,7 @@ class GLTFExporter { ...@@ -74,7 +75,7 @@ class GLTFExporter {
/** /**
* Parse scenes and generate GLTF output * Parse scenes and generate GLTF output
* @param {Scene or [THREE.Scenes]} input Scene or Array of THREE.Scenes * @param {Object3D or [THREE.Object3D]} input Object3D or Array of THREE.Object3D
* @param {Function} onDone Callback on completed * @param {Function} onDone Callback on completed
* @param {Object} options options * @param {Object} options options
*/ */
...@@ -365,7 +366,7 @@ class GLTFWriter { ...@@ -365,7 +366,7 @@ class GLTFWriter {
/** /**
* Parse scenes and generate GLTF output * Parse scenes and generate GLTF output
* @param {Scene or [THREE.Scenes]} input Scene or Array of THREE.Scenes * @param {Object3D or [THREE.Object3D]} input Object3D or Array of THREE.Object3D
* @param {Function} onDone Callback on completed * @param {Function} onDone Callback on completed
* @param {Object} options options * @param {Object} options options
*/ */
...@@ -1989,7 +1990,7 @@ class GLTFWriter { ...@@ -1989,7 +1990,7 @@ class GLTFWriter {
for ( let i = 0; i < input.length; i ++ ) { for ( let i = 0; i < input.length; i ++ ) {
if ( input[ i ] instanceof Scene ) { if ( input[ i ] instanceof Scene || input[ i ] instanceof Group ) {
this.processScene( input[ i ] ); this.processScene( input[ i ] );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册