Sebastien Vandenberghe 7 년 전
부모
커밋
fc5849c4d1
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/Helpers/babylon.environmentHelper.ts

+ 4 - 1
src/Helpers/babylon.environmentHelper.ts

@@ -270,7 +270,10 @@ namespace BABYLON {
          * you wish in the ground reflection.
          */
         public get groundMirrorRenderList(): Nullable<AbstractMesh[]> {
-            return this._groundMirror!.renderList;
+            if (this._groundMirror) {
+                return this._groundMirror.renderList;
+            }
+            return null;
         }
 
         private _groundMaterial: Nullable<BackgroundMaterial>;