|
@@ -119,7 +119,7 @@ module BABYLON {
|
|
*/
|
|
*/
|
|
protected _getWorldMatrixDeterminant(): number {
|
|
protected _getWorldMatrixDeterminant(): number {
|
|
if (this._currentRenderId !== this.getScene().getRenderId()) {
|
|
if (this._currentRenderId !== this.getScene().getRenderId()) {
|
|
- this._worldMatrixDeterminant = this.computeWorldMatrix().determinant();
|
|
|
|
|
|
+ this.computeWorldMatrix();
|
|
}
|
|
}
|
|
return this._worldMatrixDeterminant;
|
|
return this._worldMatrixDeterminant;
|
|
}
|
|
}
|
|
@@ -835,6 +835,9 @@ module BABYLON {
|
|
this._poseMatrix = Matrix.Invert(this._worldMatrix);
|
|
this._poseMatrix = Matrix.Invert(this._worldMatrix);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // Cache the determinant
|
|
|
|
+ this._worldMatrixDeterminant = this._worldMatrix.determinant();
|
|
|
|
+
|
|
return this._worldMatrix;
|
|
return this._worldMatrix;
|
|
}
|
|
}
|
|
|
|
|