Browse Source

Merge pull request #905 from julien-moreau/master

Fixed SkyMaterial
Raanan Weber 9 years ago
parent
commit
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

File diff suppressed because it is too large
+ 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();