diff --git a/apps/openmw/mwrender/objects.cpp b/apps/openmw/mwrender/objects.cpp index 66f55c5ad2..b8b7d62309 100644 --- a/apps/openmw/mwrender/objects.cpp +++ b/apps/openmw/mwrender/objects.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -78,7 +79,7 @@ namespace MWRender if (animated && !mesh.empty()) { animationMesh = Misc::ResourceHelpers::correctActorModelPath(mesh, mResourceSystem->getVFS()); - if (animationMesh == mesh) + if (animationMesh == mesh && Misc::StringUtils::ciEndsWith(animationMesh, ".nif")) animated = false; } @@ -95,7 +96,7 @@ namespace MWRender bool animated = true; std::string animationMesh = Misc::ResourceHelpers::correctActorModelPath(mesh, mResourceSystem->getVFS()); - if (animationMesh == mesh) + if (animationMesh == mesh && Misc::StringUtils::ciEndsWith(animationMesh, ".nif")) animated = false; // CreatureAnimation