OSDN Git Service

collada読み込みの間違いを修正
authorqw_fuku <fkhideaki@gmail.com>
Mon, 9 Feb 2015 16:19:14 +0000 (01:19 +0900)
committerqw_fuku <fkhideaki@gmail.com>
Mon, 9 Feb 2015 16:19:14 +0000 (01:19 +0900)
Src/LibQtGeoViewerCore/Format/AssimpReader.cpp

index 74b15f8..c1c914b 100644 (file)
@@ -205,6 +205,9 @@ void AssimpReader::LoadAnimation(geom::BoneMap& bone_map, const aiScene* ai_scen
        if (geom->m_Nodes.m_RootNodes.empty())
                return;
 
+       if (ai_scene->mNumAnimations <= 0)
+               return;
+
        const aiAnimation* anim = ai_scene->mAnimations[0];
        for (unsigned int j = 0; j < anim->mNumChannels; ++j)
        {