|
@@ -53506,8 +53506,12 @@ var BABYLON;
|
|
|
* @return true if the system is ready
|
|
|
*/
|
|
|
GPUParticleSystem.prototype.isReady = function () {
|
|
|
- if (!this.emitter || !this._updateEffect || !this._renderEffect ||
|
|
|
- !this._updateEffect.isReady() || !this._renderEffect.isReady() || !this.particleTexture || !this.particleTexture.isReady()) {
|
|
|
+ if (!this._updateEffect) {
|
|
|
+ this._recreateUpdateEffect();
|
|
|
+ this._recreateRenderEffect();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (!this.emitter || !this._updateEffect.isReady() || !this._renderEffect.isReady() || !this.particleTexture || !this.particleTexture.isReady()) {
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|