mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 10:09:48 +00:00
Minor fix for error handling in skeleton.cpp
This commit is contained in:
parent
bd68ebac62
commit
624809c8dc
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ void Bone::update(const osg::Matrixf* parentMatrixInSkeletonSpace)
|
||||||
if (!mNode)
|
if (!mNode)
|
||||||
{
|
{
|
||||||
std::cerr << "Bone without node " << std::endl;
|
std::cerr << "Bone without node " << std::endl;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (parentMatrixInSkeletonSpace)
|
if (parentMatrixInSkeletonSpace)
|
||||||
mMatrixInSkeletonSpace = mNode->getMatrix() * (*parentMatrixInSkeletonSpace);
|
mMatrixInSkeletonSpace = mNode->getMatrix() * (*parentMatrixInSkeletonSpace);
|
||||||
|
|
Loading…
Reference in a new issue