Minor performance optimisations.

This commit is contained in:
hiker 2014-12-09 07:56:18 +11:00
parent b764339b20
commit 5b62d94c5b

View File

@ -794,6 +794,7 @@ void CSkinnedMesh::checkForAnimation()
AllJoints[i]->UseAnimationFrom->RotationKeys.size() )
{
HasAnimation = true;
break;
}
}
}
@ -803,8 +804,11 @@ void CSkinnedMesh::checkForAnimation()
{
for(i=0;i<AllJoints.size();++i)
{
if (AllJoints[i]->Weights.size())
HasAnimation = true;
if (AllJoints[i]->Weights.size())
{
HasAnimation = true;
break;
}
}
}