|
@@ -24903,6 +24903,9 @@ var BABYLON;
|
|
|
var scene = this.getScene();
|
|
|
var engine = scene.getEngine();
|
|
|
var checkReady = function () {
|
|
|
+ if (!_this._scene || !_this._scene.getEngine()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (subMesh._materialDefines) {
|
|
|
subMesh._materialDefines._renderId = -1;
|
|
|
}
|
|
@@ -34929,8 +34932,11 @@ var BABYLON;
|
|
|
subMeshes.push.apply(subMeshes, mesh.subMeshes);
|
|
|
}
|
|
|
var checkReady = function () {
|
|
|
+ if (!_this._scene || !_this._scene.getEngine()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
var subMesh = subMeshes[currentIndex];
|
|
|
- if (_this._scene && _this._scene.getEngine() && _this.isReady(subMesh, options ? options.useInstances : false)) {
|
|
|
+ if (_this.isReady(subMesh, options ? options.useInstances : false)) {
|
|
|
currentIndex++;
|
|
|
if (currentIndex >= subMeshes.length) {
|
|
|
if (onCompiled) {
|