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
+4
View File
@@ -121,6 +121,10 @@ private:
ColladaEffects effects;
};
class DeferredObject {
friend bool operator < (const DeferredObject & def_obj1, const DeferredObject & def_obj2)
{
return (def_obj1.parent < def_obj2.parent ? true : false);
}
public:
std::string unique_id, representation_id, type;
std::vector<real_t> matrix;