|
@@ -118,6 +118,16 @@ namespace Blender {
|
|
|
#ifdef _MSC_VER
|
|
|
# pragma warning(disable:4351)
|
|
|
#endif
|
|
|
+
|
|
|
+ struct ObjectCompare {
|
|
|
+ bool operator() (const Object* left, const Object* right) const {
|
|
|
+ return strcmp(left->id.name, right->id.name) == -1;
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ // When keeping objects in sets, sort them by their name.
|
|
|
+ typedef std::set<const Object*, ObjectCompare> ObjectSet;
|
|
|
+
|
|
|
// --------------------------------------------------------------------
|
|
|
/** ConversionData acts as intermediate storage location for
|
|
|
* the various ConvertXXX routines in BlenderImporter.*/
|
|
@@ -130,7 +140,13 @@ namespace Blender {
|
|
|
, db(db)
|
|
|
{}
|
|
|
|
|
|
- std::set<const Object*> objects;
|
|
|
+ struct ObjectCompare {
|
|
|
+ bool operator() (const Object* left, const Object* right) const {
|
|
|
+ return strcmp(left->id.name, right->id.name) == -1;
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ ObjectSet objects;
|
|
|
|
|
|
TempArray <std::vector, aiMesh> meshes;
|
|
|
TempArray <std::vector, aiCamera> cameras;
|