From 2e6ad884bbcf1d2ff3ba8893e4fb3c343f3eb78d Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Sun, 27 Jan 2013 15:44:57 +0100 Subject: [PATCH] - Ifc: append GUID to node names to preserve them. --- code/IFCLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/IFCLoader.cpp b/code/IFCLoader.cpp index add16565a..7aa5163a2 100644 --- a/code/IFCLoader.cpp +++ b/code/IFCLoader.cpp @@ -599,7 +599,7 @@ aiNode* ProcessSpatialStructure(aiNode* parent, const IfcProduct& el, Conversion // add an output node for this spatial structure std::auto_ptr nd(new aiNode()); - nd->mName.Set(el.GetClassName()+"_"+(el.Name?el.Name:el.GlobalId)); + nd->mName.Set(el.GetClassName()+"_"+(el.Name?el.Name.Get():"Unnamed")+"_"+el.GlobalId); nd->mParent = parent; if(el.ObjectPlacement) {