Minor performance optimisations.
This commit is contained in:
parent
b764339b20
commit
5b62d94c5b
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user