浏览代码

Update GLTFExporter.js (#28938)

Prevent from uneccessary early return
POPOBE97 1 年之前
父节点
当前提交
4e4baddc8d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/exporters/GLTFExporter.js

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

@@ -2113,7 +2113,7 @@ class GLTFWriter {
 			if ( ! trackNode || ! trackProperty ) {
 
 				console.warn( 'THREE.GLTFExporter: Could not export animation track "%s".', track.name );
-				return null;
+				continue;
 
 			}