소스 검색

Merge pull request #919 from Temechon/master

Bugfix : Do not add a loading screen if there is already one
Raanan Weber 9 년 전
부모
커밋
ed0e23eb1c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/Tools/babylon.loadingScreen.ts

+ 4 - 0
src/Tools/babylon.loadingScreen.ts

@@ -19,6 +19,10 @@ module BABYLON {
 		}
 		
 		public displayLoadingUI(): void {
+            if (this._loadingDiv) {
+                // Do not add a loading screen if there is already one
+                return;
+            }
 			this._loadingDiv = document.createElement("div");
 
 		    this._loadingDiv.id = "babylonjsLoadingDiv";