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:
authorJacques Lucke <jacques@blender.org>2021-03-25 18:01:28 +0300
committerJacques Lucke <jacques@blender.org>2021-03-25 18:01:41 +0300
commit1d7adb6d8a3ee9126b9361f652da89f014bef423 (patch)
treef9ff96750df6eec018406506576bd90b9edc3beb /source/blender/blenkernel/BKE_node_ui_storage.hh
parent9b426269189ce00add24e48c951c45aca01f2076 (diff)
BLI: simplify using DefaultHash
Diffstat (limited to 'source/blender/blenkernel/BKE_node_ui_storage.hh')
-rw-r--r--source/blender/blenkernel/BKE_node_ui_storage.hh4
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)