David Catuhe 5 лет назад
Родитель
Сommit
d08997a3a8
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      sandbox/src/sandbox.tsx

+ 1 - 0
sandbox/src/sandbox.tsx

@@ -37,6 +37,7 @@ export class Sandbox extends React.Component<ISandboxProps, { isFooterVisible: b
         // Events
         this._globalState.onSceneLoaded.add((info) => {
             document.title = "Babylon.js - " + info.filename;
+            this.setState({ errorMessage: "" });
 
             this._globalState.currentScene = info.scene;
             if (this._globalState.currentScene.meshes.length === 0 && this._globalState.currentScene.clearColor.r === 1 && this._globalState.currentScene.clearColor.g === 0 && this._globalState.currentScene.clearColor.b === 0) {