One more dynamic_cast to drop.

This commit is contained in:
Pär Winzell 2017-11-06 23:14:35 -08:00
parent 4f8ddffdf7
commit 5786fc9f0b
1 changed files with 1 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ static void ReadAnimations(RawModel &raw, FbxScene *pScene)
FbxNodeAttribute *nodeAttr = pNode->GetNodeAttribute(); FbxNodeAttribute *nodeAttr = pNode->GetNodeAttribute();
if (nodeAttr != nullptr && nodeAttr->GetAttributeType() == FbxNodeAttribute::EType::eMesh) { if (nodeAttr != nullptr && nodeAttr->GetAttributeType() == FbxNodeAttribute::EType::eMesh) {
// it's inelegant to recreate this same access class multiple times, but it's also dirt cheap... // it's inelegant to recreate this same access class multiple times, but it's also dirt cheap...
FbxBlendShapesAccess blendShapes(pScene, dynamic_cast<FbxMesh *>(nodeAttr)); FbxBlendShapesAccess blendShapes(pScene, static_cast<FbxMesh *>(nodeAttr));
for (FbxLongLong frameIndex = firstFrameIndex; frameIndex <= lastFrameIndex; frameIndex++) { for (FbxLongLong frameIndex = firstFrameIndex; frameIndex <= lastFrameIndex; frameIndex++) {
FbxTime pTime; FbxTime pTime;