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

Fixed cppcheck warning

parent 179f3b8c
......@@ -229,13 +229,15 @@ double InfoSkeletonObjectPlugin::boneLength(int _skeletonID, int _jointID)
Skeleton* skeleton = PluginFunctions::skeleton(_skeletonID);
if ( !skeleton )
{
emit log(LOGERR, tr("Unable to get skeleton"));
emit log(LOGERR, tr("Unable to get skeleton"));
return (-1.0);
}
Skeleton::Joint* parent = skeleton->joint(_jointID)->parent();
if (!parent)
{
emit log(LOGERR, tr ("Unable to get parent joint"));
emit log(LOGERR, tr ("Unable to get parent joint"));
return (-1.0);
}
unsigned int parentID = parent->id();
......
Markdown is supported
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