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

Fix scene loader when there is nothing asynchronous to be loaded.

C. Scott Ananian 14 лет назад
Родитель
Сommit
ed38b18fd9
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/extras/loaders/SceneLoader.js

+ 3 - 0
src/extras/loaders/SceneLoader.js

@@ -760,6 +760,9 @@ THREE.SceneLoader.prototype = {
 
 
 			scope.callbackSync( result );
 			scope.callbackSync( result );
 
 
+                        // just in case there are no async elements:
+			async_callback_gate();
+
 		};
 		};
 
 
 	},
 	},