瀏覽代碼

Merge pull request #905 from julien-moreau/master

Fixed SkyMaterial
Raanan Weber 9 年之前
父節點
當前提交
6b22080a65

+ 1 - 1
materialsLibrary/dist/babylon.skyMaterial.js

@@ -90,7 +90,7 @@ var BABYLON;
                 }
             }
             // Get correct effect      
-            if (!this._defines.isEqual(this._cachedDefines)) {
+            if (!this._defines.isEqual(this._cachedDefines) || !this._effect) {
                 this._defines.cloneTo(this._cachedDefines);
                 scene.resetCachedMaterial();
                 // Fallbacks

文件差異過大導致無法顯示
+ 1 - 1
materialsLibrary/dist/babylon.skyMaterial.min.js


+ 1 - 1
materialsLibrary/materials/sky/babylon.skyMaterial.ts

@@ -110,7 +110,7 @@ module BABYLON {
             }
 
             // Get correct effect      
-            if (!this._defines.isEqual(this._cachedDefines)) {
+            if (!this._defines.isEqual(this._cachedDefines) || !this._effect) {
                 this._defines.cloneTo(this._cachedDefines);
                 
                 scene.resetCachedMaterial();