One more dynamic_cast to drop.
This commit is contained in:
parent
4f8ddffdf7
commit
5786fc9f0b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue