dust3d/src/skeletonside.cpp

15 lines
350 B
C++
Raw Normal View History

#include <QObject>
#include "skeletonside.h"
IMPL_SkeletonSideToDispName
IMPL_SkeletonSideToString
SkeletonSide SkeletonSideFromBoneName(const QString &boneName)
{
if (boneName.startsWith("Left"))
return SkeletonSide::Left;
else if (boneName.startsWith("Right"))
return SkeletonSide::Right;
return SkeletonSide::None;
}