Commit e2491c8b authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed cppcheck warnings

parent eebf7a68
......@@ -124,8 +124,8 @@ void SkeletonTransform::translateSkeleton(ACG::Vec3d _translation, Skeleton::Pos
if ( pose == refPose_ )
continue;
ACG::Vec3d position = pose->globalTranslation( 0 );
pose->setGlobalTranslation( 0, position + _translation );
ACG::Vec3d globalTranslation = pose->globalTranslation( 0 );
pose->setGlobalTranslation( 0, globalTranslation + _translation );
}
}
}
......@@ -161,8 +161,8 @@ void SkeletonTransform::transformSkeleton(Matrix4x4 _transformation, Skeleton::P
if ( pose == refPose_ )
continue;
ACG::Matrix4x4d local = pose->localMatrix( 0 );
pose->setLocalMatrix( 0, _transformation * local );
ACG::Matrix4x4d localMatrix = pose->localMatrix( 0 );
pose->setLocalMatrix( 0, _transformation * localMatrix );
}
}
}
......@@ -354,7 +354,7 @@ void SkeletonTransform::rotateJoint(Skeleton::Joint* _joint, Skeleton::Pose* _po
//-----------------------------------------------------------------------------
double SkeletonTransform::determinant(Matrix4x4& _m) {
double SkeletonTransform::determinant(const Matrix4x4& _m) {
double value;
value =
......
......@@ -81,7 +81,7 @@ class OBJECTTYPEDLLEXPORT SkeletonTransform {
void rotateJoint(Skeleton::Joint* _joint, Skeleton::Pose* _pose, Matrix4x4 _rotation, bool _applyToWholeAnimation = true);
/// compute determinant to check if matrix is rotation matrix
static double determinant(Matrix4x4& _m);
static double determinant(const Matrix4x4& _m);
private:
Skeleton& skeleton_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment