mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Feature : For each parent element, include the type in the name if --use-element-types if used
This commit is contained in:
@@ -313,8 +313,13 @@ void ColladaSerializer::ColladaExporter::ColladaScene::addParent(const IfcGeom::
|
|||||||
|
|
||||||
// Chose a name of the parent object
|
// Chose a name of the parent object
|
||||||
std::string name = "";
|
std::string name = "";
|
||||||
if (parent.name() == "") { name = parent.type(); }
|
if (serializer->settings().get(SerializerSettings::USE_ELEMENT_TYPES)) { name = parent.type() + " " + parent.name(); }
|
||||||
else { name = parent.name(); }
|
else
|
||||||
|
{
|
||||||
|
if (parent.name() == "") { name = "unnamed"; }
|
||||||
|
else { name = parent.name(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
COLLADASW::Node *current_node;
|
COLLADASW::Node *current_node;
|
||||||
current_node = new COLLADASW::Node(mSW);
|
current_node = new COLLADASW::Node(mSW);
|
||||||
|
|||||||
Reference in New Issue
Block a user