|
@@ -4,49 +4,31 @@ var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__p
|
|
|
|
|
|
(function universalModuleDefinition(root, factory) {
|
|
|
var amdDependencies = [];
|
|
|
- var CANNON = root. CANNON;
|
|
|
- if(!CANNON) {
|
|
|
- if(typeof exports === 'object') {
|
|
|
- try { CANNON = require("cannon"); } catch(e) {}
|
|
|
- } else if(typeof define === 'function' && define.amd) {
|
|
|
- if(require.specified && require.specified("cannon")) amdDependencies.push("cannon");
|
|
|
- }
|
|
|
- } else {
|
|
|
- if(typeof define === 'function' && define.amd) {
|
|
|
- if(!(require.specified && require.specified("' + dep.module + '"))) {
|
|
|
- try { define("cannon", [], function () { return CANNON; }); } catch(e) { }
|
|
|
- }
|
|
|
- amdDependencies.push("cannon");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- var OIMO = root. OIMO;
|
|
|
- if(!OIMO) {
|
|
|
- if(typeof exports === 'object') {
|
|
|
- try { OIMO = require("oimo"); } catch(e) {}
|
|
|
- } else if(typeof define === 'function' && define.amd) {
|
|
|
- if(require.specified && require.specified("oimo")) amdDependencies.push("oimo");
|
|
|
- }
|
|
|
- } else {
|
|
|
- if(typeof define === 'function' && define.amd) {
|
|
|
- if(!(require.specified && require.specified("' + dep.module + '"))) {
|
|
|
- try { define("oimo", [], function () { return OIMO; }); } catch(e) { }
|
|
|
- }
|
|
|
- amdDependencies.push("oimo");
|
|
|
- }
|
|
|
- }
|
|
|
+ var CANNON = root.CANNON;
|
|
|
+ var OIMO = root.OIMO;
|
|
|
+ if(typeof exports === 'object' && typeof module === 'object') {
|
|
|
+ try { CANNON = CANNON || require("cannon"); } catch(e) {}
|
|
|
+ try { OIMO = OIMO || require("oimo"); } catch(e) {}
|
|
|
|
|
|
- if(typeof exports === 'object' && typeof module === 'object')
|
|
|
module.exports = factory(CANNON,OIMO);
|
|
|
- else if(typeof define === 'function' && define.amd)
|
|
|
+ } else if(typeof define === 'function' && define.amd) {
|
|
|
+ if(require.specified && require.specified("cannon")) amdDependencies.push("cannon");
|
|
|
+ if(require.specified && require.specified("oimo")) amdDependencies.push("oimo");
|
|
|
+
|
|
|
define("babylonjs", amdDependencies, factory);
|
|
|
- else if(typeof exports === 'object')
|
|
|
+ } else if(typeof exports === 'object') {
|
|
|
+ try { CANNON = CANNON || require("cannon"); } catch(e) {}
|
|
|
+ try { OIMO = OIMO || require("oimo"); } catch(e) {}
|
|
|
+
|
|
|
exports["babylonjs"] = factory(CANNON,OIMO);
|
|
|
- else {
|
|
|
+ } else {
|
|
|
root["BABYLON"] = factory(CANNON,OIMO);
|
|
|
}
|
|
|
})(this, function(CANNON,OIMO) {
|
|
|
- "use strict";
|
|
|
+ CANNON = CANNON || this.CANNON;
|
|
|
+ OIMO = OIMO || this.OIMO;
|
|
|
+
|
|
|
+"use strict";
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
/**
|
|
@@ -15120,6 +15102,7 @@ var BABYLON;
|
|
|
this.releaseEffects();
|
|
|
// Unbind
|
|
|
this.unbindAllAttributes();
|
|
|
+ this._boundUniforms = [];
|
|
|
if (this._dummyFramebuffer) {
|
|
|
this._gl.deleteFramebuffer(this._dummyFramebuffer);
|
|
|
}
|
|
@@ -47864,7 +47847,7 @@ var BABYLON;
|
|
|
* @param loop defines if animations must loop
|
|
|
* @param speedRatio defines the ratio to apply to animation speed (1 by default)
|
|
|
* @param from defines the from key (optional)
|
|
|
- * @param from defines the to key (optional)
|
|
|
+ * @param to defines the to key (optional)
|
|
|
* @returns the current animation group
|
|
|
*/
|
|
|
AnimationGroup.prototype.start = function (loop, speedRatio, from, to) {
|