Просмотр исходного кода

Update GLTFExporter.js (#28938)

Prevent from uneccessary early return
POPOBE97 1 год назад
Родитель
Сommit
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;
 
 			}