diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-25 18:01:28 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-25 18:01:41 +0300 |
commit | 1d7adb6d8a3ee9126b9361f652da89f014bef423 (patch) | |
tree | f9ff96750df6eec018406506576bd90b9edc3beb /source/blender/blenkernel | |
parent | 9b426269189ce00add24e48c951c45aca01f2076 (diff) |
BLI: simplify using DefaultHash
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_node_ui_storage.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_node_ui_storage.hh b/source/blender/blenkernel/BKE_node_ui_storage.hh index a8fdbec1e8c..aa7e5180b03 100644 --- a/source/blender/blenkernel/BKE_node_ui_storage.hh +++ b/source/blender/blenkernel/BKE_node_ui_storage.hh @@ -58,9 +58,7 @@ class NodeTreeEvaluationContext { uint64_t hash() const { - const uint64_t hash1 = blender::DefaultHash<std::string>{}(object_name_); - const uint64_t hash2 = BLI_session_uuid_hash_uint64(&modifier_session_uuid_); - return hash1 ^ (hash2 * 33); /* Copied from DefaultHash for std::pair. */ + return blender::get_default_hash_2(object_name_, modifier_session_uuid_); } friend bool operator==(const NodeTreeEvaluationContext &a, const NodeTreeEvaluationContext &b) |