Blender: fix invalid OnjectCompare op.
parent
23417ead46
commit
b240b9d30d
|
@ -123,8 +123,7 @@ namespace Blender {
|
||||||
|
|
||||||
struct ObjectCompare {
|
struct ObjectCompare {
|
||||||
bool operator() (const Object* left, const Object* right) const {
|
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 ) ) == -1;
|
||||||
return ::strncmp(left->id.name, right->id.name, strlen( left->id.name ) ) == 0;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -145,8 +144,7 @@ namespace Blender {
|
||||||
|
|
||||||
struct ObjectCompare {
|
struct ObjectCompare {
|
||||||
bool operator() (const Object* left, const Object* right) const {
|
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 ) ) == -1;
|
||||||
return ::strncmp( left->id.name, right->id.name, strlen( left->id.name ) ) == 0;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue