Sebastien Vandenberghe %!s(int64=7) %!d(string=hai) anos
pai
achega
fc5849c4d1
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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>;