1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Minor fix for error handling in skeleton.cpp

This commit is contained in:
scrawl 2015-12-08 16:48:01 +01:00
parent bd68ebac62
commit 624809c8dc

View File

@ -162,6 +162,7 @@ void Bone::update(const osg::Matrixf* parentMatrixInSkeletonSpace)
if (!mNode)
{
std::cerr << "Bone without node " << std::endl;
return;
}
if (parentMatrixInSkeletonSpace)
mMatrixInSkeletonSpace = mNode->getMatrix() * (*parentMatrixInSkeletonSpace);