Procházet zdrojové kódy

Update GLTFExporter.js (#28938)

Prevent from uneccessary early return
POPOBE97 před 1 rokem
rodič
revize
4e4baddc8d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 
 			}