From 5eb3779ad86f5c4a76d34fa8333d86f50ee537b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Winzell?= Date: Mon, 6 Nov 2017 00:17:39 -0800 Subject: [PATCH] Don't use dynamic_cast, it needs RTTI. --- src/Fbx2Raw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fbx2Raw.cpp b/src/Fbx2Raw.cpp index d544d06..fb33485 100644 --- a/src/Fbx2Raw.cpp +++ b/src/Fbx2Raw.cpp @@ -538,7 +538,7 @@ private: std::vector results; for (int shapeIx = 0; shapeIx < mesh->GetDeformerCount(FbxDeformer::eBlendShape); shapeIx++) { - auto *fbxBlendShape = dynamic_cast(mesh->GetDeformer(shapeIx, FbxDeformer::eBlendShape)); + auto *fbxBlendShape = static_cast(mesh->GetDeformer(shapeIx, FbxDeformer::eBlendShape)); if (fbxBlendShape == nullptr) { continue; }