From 8680a5e76ed198fe019a533524b9343995b76cf3 Mon Sep 17 00:00:00 2001 From: Gellule Xg Date: Wed, 7 Dec 2011 08:49:58 -1000 Subject: [PATCH] No need to have the layer number in the NodeDesc name. It is added later by BuildGraph when the aiNode hierarchy is created. --- code/LWSLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/LWSLoader.cpp b/code/LWSLoader.cpp index 1acd9e20f..5aa1e67b3 100644 --- a/code/LWSLoader.cpp +++ b/code/LWSLoader.cpp @@ -586,11 +586,12 @@ void LWSImporter::InternReadFile( const std::string& pFile, aiScene* pScene, // add node to list LWS::NodeDesc d; d.type = LWS::NodeDesc::OBJECT; - d.name = c; if (version >= 4) { // handle LWSC 4 explicit ID d.number = strtoul16(c,&c) & AI_LWS_MASK; + SkipSpaces(&c); } else d.number = cur_object++; + d.name = c; nodes.push_back(d); num_object++;