|
@@ -176,13 +176,21 @@ var BABYLON;
|
|
configurable: true
|
|
configurable: true
|
|
});
|
|
});
|
|
AbstractMesh.prototype.freezeWorldMatrix = function () {
|
|
AbstractMesh.prototype.freezeWorldMatrix = function () {
|
|
|
|
+ this._isWorldMatrixFrozen = false; // no guarantee world is not already frozen, switch off temporarily
|
|
this.computeWorldMatrix(true);
|
|
this.computeWorldMatrix(true);
|
|
this._isWorldMatrixFrozen = true;
|
|
this._isWorldMatrixFrozen = true;
|
|
};
|
|
};
|
|
AbstractMesh.prototype.unfreezeWorldMatrix = function () {
|
|
AbstractMesh.prototype.unfreezeWorldMatrix = function () {
|
|
- this.computeWorldMatrix(true);
|
|
|
|
this._isWorldMatrixFrozen = false;
|
|
this._isWorldMatrixFrozen = false;
|
|
|
|
+ this.computeWorldMatrix(true);
|
|
};
|
|
};
|
|
|
|
+ Object.defineProperty(AbstractMesh.prototype, "isWorldMatrixFrozen", {
|
|
|
|
+ get: function () {
|
|
|
|
+ return this._isWorldMatrixFrozen;
|
|
|
|
+ },
|
|
|
|
+ enumerable: true,
|
|
|
|
+ configurable: true
|
|
|
|
+ });
|
|
AbstractMesh.prototype.rotate = function (axis, amount, space) {
|
|
AbstractMesh.prototype.rotate = function (axis, amount, space) {
|
|
if (!this.rotationQuaternion) {
|
|
if (!this.rotationQuaternion) {
|
|
this.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(this.rotation.y, this.rotation.x, this.rotation.z);
|
|
this.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(this.rotation.y, this.rotation.x, this.rotation.z);
|
|
@@ -806,4 +814,5 @@ var BABYLON;
|
|
})(BABYLON.Node);
|
|
})(BABYLON.Node);
|
|
BABYLON.AbstractMesh = AbstractMesh;
|
|
BABYLON.AbstractMesh = AbstractMesh;
|
|
})(BABYLON || (BABYLON = {}));
|
|
})(BABYLON || (BABYLON = {}));
|
|
-//# sourceMappingURL=babylon.abstractMesh.js.map
|
|
|
|
|
|
+
|
|
|
|
+//# sourceMappingURL=../Mesh/babylon.abstractMesh.js.map
|