diff --git a/code/BlenderIntermediate.h b/code/BlenderIntermediate.h index fc5d7bf57..83b10e870 100644 --- a/code/BlenderIntermediate.h +++ b/code/BlenderIntermediate.h @@ -123,8 +123,7 @@ namespace Blender { struct ObjectCompare { bool operator() (const Object* left, const Object* right) const { - printf( "left: %s, right: %s\n", left->id.name, right->id.name ); - return ::strncmp(left->id.name, right->id.name, strlen( left->id.name ) ) == 0; + return ::strncmp(left->id.name, right->id.name, strlen( left->id.name ) ) == -1; } }; @@ -145,8 +144,7 @@ namespace Blender { struct ObjectCompare { bool operator() (const Object* left, const Object* right) const { - printf( "left: %s, right: %s\n", left->id.name, right->id.name ); - return ::strncmp( left->id.name, right->id.name, strlen( left->id.name ) ) == 0; + return ::strncmp( left->id.name, right->id.name, strlen( left->id.name ) ) == -1; } };