mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Fixed moving the pivot point of rotated pieces. Fixes #179.
This commit is contained in:
parent
1ee596b7fc
commit
9c503eb7a4
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ void lcPiece::MovePivotPoint(const lcVector3& Distance)
|
|||
if (!IsFocused(LC_PIECE_SECTION_POSITION))
|
||||
return;
|
||||
|
||||
mPivotMatrix.SetTranslation(mPivotMatrix.GetTranslation() + Distance);
|
||||
mPivotMatrix.SetTranslation(mPivotMatrix.GetTranslation() + lcMul30(Distance, lcMatrix44AffineInverse(mModelWorld)));
|
||||
mState |= LC_PIECE_PIVOT_POINT_VALID;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue