Skip to content

Commit 3a971d6

Browse files
author
aothms
committed
When writing collada files, postfix geometry instance nodes to make them distinct from their geometry library references
1 parent 9a75a1f commit 3a971d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifcconvert/ColladaSerializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void ColladaSerializer::ColladaExporter::endDocument() {
259259
geometries.close();
260260
for (std::vector<DeferredObject>::const_iterator it = deferreds.begin(); it != deferreds.end(); ++it) {
261261
const std::string object_name = it->Name();
262-
scene.add(object_name, object_name, object_name, it->material_references, it->matrix);
262+
scene.add(object_name + "-instance", object_name, object_name, it->material_references, it->matrix);
263263
}
264264
scene.write();
265265
stream.endDocument();

0 commit comments

Comments
 (0)