Don't use dynamic_cast, it needs RTTI.

This commit is contained in:
Pär Winzell 2017-11-06 00:17:39 -08:00
parent 60f18ae635
commit 5eb3779ad8
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ private:
std::vector<BlendChannel> results; std::vector<BlendChannel> results;
for (int shapeIx = 0; shapeIx < mesh->GetDeformerCount(FbxDeformer::eBlendShape); shapeIx++) { for (int shapeIx = 0; shapeIx < mesh->GetDeformerCount(FbxDeformer::eBlendShape); shapeIx++) {
auto *fbxBlendShape = dynamic_cast<FbxBlendShape *>(mesh->GetDeformer(shapeIx, FbxDeformer::eBlendShape)); auto *fbxBlendShape = static_cast<FbxBlendShape *>(mesh->GetDeformer(shapeIx, FbxDeformer::eBlendShape));
if (fbxBlendShape == nullptr) { if (fbxBlendShape == nullptr) {
continue; continue;
} }