diff --git a/common/piece.cpp b/common/piece.cpp index b47fa9b8..1bec47c4 100644 --- a/common/piece.cpp +++ b/common/piece.cpp @@ -44,7 +44,9 @@ lcPiece::lcPiece(const lcPiece& Other) mStepHide = Other.mStepHide; mGroup = Other.mGroup; mFileLine = -1; + mPivotMatrix = Other.mPivotMatrix; + mState |= ( Other.mState & LC_PIECE_PIVOT_POINT_VALID ); mPositionKeys = Other.mPositionKeys; mRotationKeys = Other.mRotationKeys; diff --git a/common/piece.h b/common/piece.h index 8fb45b3c..dd866e94 100644 --- a/common/piece.h +++ b/common/piece.h @@ -535,6 +535,7 @@ public: void ResetPivotPoint() { mState &= ~LC_PIECE_PIVOT_POINT_VALID; + mPivotMatrix = lcMatrix44Identity(); } public: