OSDN Git Service
(root)
/
qtgeoviewer
/
QtGeoViewer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb81a7
)
collada読み込みの間違いを修正
author
qw_fuku
<fkhideaki@gmail.com>
Mon, 9 Feb 2015 16:19:14 +0000
(
01:19
+0900)
committer
qw_fuku
<fkhideaki@gmail.com>
Mon, 9 Feb 2015 16:19:14 +0000
(
01:19
+0900)
Src/LibQtGeoViewerCore/Format/AssimpReader.cpp
patch
|
blob
|
history
diff --git
a/Src/LibQtGeoViewerCore/Format/AssimpReader.cpp
b/Src/LibQtGeoViewerCore/Format/AssimpReader.cpp
index
74b15f8
..
c1c914b
100644
(file)
--- a/
Src/LibQtGeoViewerCore/Format/AssimpReader.cpp
+++ b/
Src/LibQtGeoViewerCore/Format/AssimpReader.cpp
@@
-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)
{