|
@@ -9737,7 +9737,6 @@ var BABYLON;
|
|
|
InternalPromise.prototype._resolve = function (value) {
|
|
|
try {
|
|
|
this._state = PromiseStates.Fulfilled;
|
|
|
- this._result = value;
|
|
|
var returnedValue = null;
|
|
|
if (this._onFulfilled) {
|
|
|
returnedValue = this._onFulfilled(value);
|
|
@@ -9752,6 +9751,7 @@ var BABYLON;
|
|
|
value = returnedValue;
|
|
|
}
|
|
|
}
|
|
|
+ this._result = value;
|
|
|
for (var _i = 0, _a = this._children; _i < _a.length; _i++) {
|
|
|
var child = _a[_i];
|
|
|
child._resolve(value);
|
|
@@ -52635,11 +52635,11 @@ var BABYLON;
|
|
|
*/
|
|
|
ParticleSystem.prototype.createBoxEmitter = function (direction1, direction2, minEmitBox, maxEmitBox) {
|
|
|
var particleEmitter = new BABYLON.BoxParticleEmitter();
|
|
|
+ this.particleEmitterType = particleEmitter;
|
|
|
this.direction1 = direction1;
|
|
|
this.direction2 = direction2;
|
|
|
this.minEmitBox = minEmitBox;
|
|
|
this.maxEmitBox = maxEmitBox;
|
|
|
- this.particleEmitterType = particleEmitter;
|
|
|
return particleEmitter;
|
|
|
};
|
|
|
// Clone
|
|
@@ -100526,7 +100526,9 @@ var BABYLON;
|
|
|
return (BABYLON.Tools.IsBase64(uri) || uri.indexOf("..") === -1);
|
|
|
};
|
|
|
GLTFLoader._GetDrawMode = function (context, mode) {
|
|
|
- mode = mode || 4 /* TRIANGLES */;
|
|
|
+ if (mode == undefined) {
|
|
|
+ mode = 4 /* TRIANGLES */;
|
|
|
+ }
|
|
|
switch (mode) {
|
|
|
case 0 /* POINTS */: return BABYLON.Material.PointListDrawMode;
|
|
|
case 1 /* LINES */: return BABYLON.Material.LineListDrawMode;
|