Browse Source

Fixed BABYLON.Mesh.prototype.getPivotMatrix

this._localMatrix was never set and never used. That must have been a typo in 944cfb4.
Gwenaël Hagenmuller 11 years ago
parent
commit
b760049ab3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Babylon/Mesh/babylon.mesh.js

+ 1 - 1
Babylon/Mesh/babylon.mesh.js

@@ -140,7 +140,7 @@ var BABYLON = BABYLON || {};
     };
 
     BABYLON.Mesh.prototype.getPivotMatrix = function () {
-        return this._localMatrix;
+        return this._pivotMatrix;
     };
 
     BABYLON.Mesh.prototype.isSynchronized = function () {