Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2021-10-04 12:53:12 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-10-04 12:55:09 +0300
commitf2b86471eaa48f09f534195c7b1095f85e2b7ff8 (patch)
tree9154978fd319055433037724f01417482031bf1c
parent37003cbbc12d30e6a5cf4bc425a34c232a24fe66 (diff)
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.
-rw-r--r--source/blender/blenlib/intern/session_uuid.c2
1 files changed, 1 insertions, 1 deletions
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);
}