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