Sort DeferredObject.

This commit is contained in:
Tristan Zimpfer
2017-04-12 17:28:29 +02:00
parent a02b189f69
commit f446f25cee
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -352,6 +352,7 @@ void ColladaSerializer::ColladaExporter::endDocument() {
// only at this point all objects are written to the stream.
materials.write();
std::set<std::string> geometries_written;
std::sort(deferreds.begin(), deferreds.end());
for (std::vector<DeferredObject>::const_iterator it = deferreds.begin(); it != deferreds.end(); ++it) {
if (geometries_written.find(it->representation_id) != geometries_written.end()) {
continue;