3DS: Pass name to Node constructor

pull/1745/head
Turo Lamminen 2018-01-27 17:30:01 +02:00
parent 56a19ac492
commit 6c23b57208
1 changed files with 1 additions and 2 deletions

View File

@ -686,8 +686,7 @@ void Discreet3DSImporter::ParseHierarchyChunk(uint16_t parent)
pcNode->mInstanceCount++; pcNode->mInstanceCount++;
instanceNumber = pcNode->mInstanceCount; instanceNumber = pcNode->mInstanceCount;
} }
pcNode = new D3DS::Node(); pcNode = new D3DS::Node(name);
pcNode->mName = name;
pcNode->mInstanceNumber = instanceNumber; pcNode->mInstanceNumber = instanceNumber;
// There are two unknown values which we can safely ignore // There are two unknown values which we can safely ignore