# BlenderLoader: use dna index to locate scenes, not SC tag. This fixes https://sourceforge.net/projects/assimp/forums/forum/817654/topic/5052480.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1183 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -295,7 +295,11 @@ void BlenderImporter::ExtractScene(Scene& out, const FileDatabase& file)
|
||||
|
||||
// we need a scene somewhere to start with.
|
||||
for_each(const FileBlockHead& bl,file.entries) {
|
||||
if (bl.id == "SC") {
|
||||
|
||||
// Fix: using the DNA index is more reliable to locate scenes
|
||||
//if (bl.id == "SC") {
|
||||
|
||||
if (bl.dna_index == (*it).second) {
|
||||
block = &bl;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user