Browse Source

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 7 năm trước cách đây
mục cha
commit
5f6384291e
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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>;