浏览代码

- Ifc: append GUID to node names to preserve them.

Alexander Gessler 12 年之前
父节点
当前提交
2e6ad884bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/IFCLoader.cpp

+ 1 - 1
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<aiNode> 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) {