Browse Source

Blender: fix invalid OnjectCompare op.

Kim Kulling 9 years ago
parent
commit
b240b9d30d
1 changed files with 2 additions and 4 deletions
  1. 2 4
      code/BlenderIntermediate.h

+ 2 - 4
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;
             }
         };