|
@@ -4,7 +4,7 @@
|
|
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
|
module.exports = factory();
|
|
|
else if(typeof define === 'function' && define.amd)
|
|
|
- define("babylonjs-viewer", factory);
|
|
|
+ define("babylonjs-viewer", [], factory);
|
|
|
else if(typeof exports === 'object')
|
|
|
exports["babylonjs-viewer"] = factory();
|
|
|
else {
|
|
@@ -103,7 +103,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
if(true)
|
|
|
module.exports = factory();
|
|
|
else if(typeof define === 'function' && define.amd)
|
|
|
- define("babylonjs", factory);
|
|
|
+ define("babylonjs", [], factory);
|
|
|
else if(typeof exports === 'object')
|
|
|
exports["babylonjs"] = factory();
|
|
|
else {
|
|
@@ -47182,6 +47182,16 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(AnimationGroup.prototype, "animatables", {
|
|
|
+ /**
|
|
|
+ * returning the list of animatables controlled by this animation group.
|
|
|
+ */
|
|
|
+ get: function () {
|
|
|
+ return this._animatables;
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
/**
|
|
|
* Add an animation (with its target) in the group
|
|
|
* @param animation defines the animation we want to add
|
|
@@ -47342,6 +47352,22 @@ var BABYLON;
|
|
|
return this;
|
|
|
};
|
|
|
/**
|
|
|
+ * Goes to a specific frame in this animation group
|
|
|
+ *
|
|
|
+ * @param frame the frame number to go to
|
|
|
+ * @return the animationGroup
|
|
|
+ */
|
|
|
+ AnimationGroup.prototype.goToFrame = function (frame) {
|
|
|
+ if (!this._isStarted) {
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ for (var index = 0; index < this._animatables.length; index++) {
|
|
|
+ var animatable = this._animatables[index];
|
|
|
+ animatable.goToFrame(frame);
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ };
|
|
|
+ /**
|
|
|
* Dispose all associated resources
|
|
|
*/
|
|
|
AnimationGroup.prototype.dispose = function () {
|
|
@@ -91002,8 +91028,13 @@ var BABYLON;
|
|
|
* @param scene The scene to add the material to
|
|
|
*/
|
|
|
function EnvironmentHelper(options, scene) {
|
|
|
+ var _this = this;
|
|
|
+ this._errorHandler = function (message, exception) {
|
|
|
+ _this.onErrorObservable.notifyObservers({ message: message, exception: exception });
|
|
|
+ };
|
|
|
this._options = __assign({}, EnvironmentHelper._getDefaultOptions(), options);
|
|
|
this._scene = scene;
|
|
|
+ this.onErrorObservable = new BABYLON.Observable();
|
|
|
this._setupBackground();
|
|
|
this._setupImageProcessing();
|
|
|
}
|
|
@@ -91330,7 +91361,7 @@ var BABYLON;
|
|
|
this._groundMaterial.diffuseTexture = this._options.groundTexture;
|
|
|
return;
|
|
|
}
|
|
|
- var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene);
|
|
|
+ var diffuseTexture = new BABYLON.Texture(this._options.groundTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
|
|
|
diffuseTexture.gammaSpace = false;
|
|
|
diffuseTexture.hasAlpha = true;
|
|
|
this._groundMaterial.diffuseTexture = diffuseTexture;
|
|
@@ -91416,7 +91447,7 @@ var BABYLON;
|
|
|
this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
|
|
|
return;
|
|
|
}
|
|
|
- this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene);
|
|
|
+ this._skyboxTexture = new BABYLON.CubeTexture(this._options.skyboxTexture, this._scene, undefined, undefined, undefined, undefined, this._errorHandler);
|
|
|
this._skyboxTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
|
|
|
this._skyboxTexture.gammaSpace = false;
|
|
|
this._skyboxMaterial.reflectionTexture = this._skyboxTexture;
|