No need to have the layer number in the NodeDesc name.
It is added later by BuildGraph when the aiNode hierarchy is created.pull/3/head
parent
0ed87cb9eb
commit
8680a5e76e
|
@ -586,11 +586,12 @@ void LWSImporter::InternReadFile( const std::string& pFile, aiScene* pScene,
|
||||||
// add node to list
|
// add node to list
|
||||||
LWS::NodeDesc d;
|
LWS::NodeDesc d;
|
||||||
d.type = LWS::NodeDesc::OBJECT;
|
d.type = LWS::NodeDesc::OBJECT;
|
||||||
d.name = c;
|
|
||||||
if (version >= 4) { // handle LWSC 4 explicit ID
|
if (version >= 4) { // handle LWSC 4 explicit ID
|
||||||
d.number = strtoul16(c,&c) & AI_LWS_MASK;
|
d.number = strtoul16(c,&c) & AI_LWS_MASK;
|
||||||
|
SkipSpaces(&c);
|
||||||
}
|
}
|
||||||
else d.number = cur_object++;
|
else d.number = cur_object++;
|
||||||
|
d.name = c;
|
||||||
nodes.push_back(d);
|
nodes.push_back(d);
|
||||||
|
|
||||||
num_object++;
|
num_object++;
|
||||||
|
|
Loading…
Reference in New Issue