Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Type-Skeleton
Commits
e2491c8b
Commit
e2491c8b
authored
Apr 27, 2021
by
Jan Möbius
Browse files
Fixed cppcheck warnings
parent
eebf7a68
Changes
2
Hide whitespace changes
Inline
Side-by-side
ObjectTypes/Skeleton/Helper/SkeletonTransform.cc
View file @
e2491c8b
...
...
@@ -124,8 +124,8 @@ void SkeletonTransform::translateSkeleton(ACG::Vec3d _translation, Skeleton::Pos
if
(
pose
==
refPose_
)
continue
;
ACG
::
Vec3d
posi
tion
=
pose
->
globalTranslation
(
0
);
pose
->
setGlobalTranslation
(
0
,
posi
tion
+
_translation
);
ACG
::
Vec3d
globalTransla
tion
=
pose
->
globalTranslation
(
0
);
pose
->
setGlobalTranslation
(
0
,
globalTransla
tion
+
_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
local
Matrix
=
pose
->
localMatrix
(
0
);
pose
->
setLocalMatrix
(
0
,
_transformation
*
local
Matrix
);
}
}
}
...
...
@@ -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
=
...
...
ObjectTypes/Skeleton/Helper/SkeletonTransform.hh
View file @
e2491c8b
...
...
@@ -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_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment