Commit: f2b86471eaa48f09f534195c7b1095f85e2b7ff8
Author: Sebastian Parborg
Date: Mon Oct 4 11:53:12 2021 +0200
Branches: master
https://developer.blender.org/rBf2b86471eaa48f09f534195c7b1095f85e2b7ff8
Fix session uuid ghash comparison return value
Because of legacy reasons (C string compare function returning 0 when
strings are equal), the ghash compare function is expected to return
false when hashes are equal.
===================================================================
M source/blender/blenlib/intern/session_uuid.c
===================================================================
diff --git a/source/blender/blenlib/intern/session_uuid.c
b/source/blender/blenlib/intern/session_uuid.c
index 8ed96f02149..ac15a400a92 100644
--- a/source/blender/blenlib/intern/session_uuid.c
+++ b/source/blender/blenlib/intern/session_uuid.c
@@ -74,5 +74,5 @@ bool BLI_session_uuid_ghash_compare(const void *lhs_v, const
void *rhs_v)
{
const SessionUUID *lhs = (const SessionUUID *)lhs_v;
const SessionUUID *rhs = (const SessionUUID *)rhs_v;
- return BLI_session_uuid_is_equal(lhs, rhs);
+ return !BLI_session_uuid_is_equal(lhs, rhs);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs