|
@@ -16076,7 +16076,7 @@ var BABYLON;
|
|
|
wm.invertToRef(tmat);
|
|
|
point = BABYLON.Vector3.TransformCoordinates(point, tmat);
|
|
|
}
|
|
|
- return this.setPivotMatrix(BABYLON.Matrix.Translation(point.x, point.y, point.z), true);
|
|
|
+ return this.setPivotMatrix(BABYLON.Matrix.Translation(-point.x, -point.y, -point.z), true);
|
|
|
};
|
|
|
/**
|
|
|
* Returns a new Vector3 set with the mesh pivot point coordinates in the local space.
|