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/nodes/NOD_derived_node_tree.hh
parent9b426269189ce00add24e48c951c45aca01f2076 (diff)
BLI: simplify using DefaultHash
Diffstat (limited to 'source/blender/nodes/NOD_derived_node_tree.hh')
-rw-r--r--source/blender/nodes/NOD_derived_node_tree.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/nodes/NOD_derived_node_tree.hh b/source/blender/nodes/NOD_derived_node_tree.hh
index e47774bb25a..c29de611e18 100644
--- a/source/blender/nodes/NOD_derived_node_tree.hh
+++ b/source/blender/nodes/NOD_derived_node_tree.hh
@@ -261,7 +261,7 @@ inline const NodeRef *DNode::operator->() const
inline uint64_t DNode::hash() const
{
- return DefaultHash<const DTreeContext *>{}(context_) ^ DefaultHash<const NodeRef *>{}(node_ref_);
+ return get_default_hash_2(context_, node_ref_);
}
/* --------------------------------------------------------------------
@@ -316,8 +316,7 @@ inline const SocketRef *DSocket::operator->() const
inline uint64_t DSocket::hash() const
{
- return DefaultHash<const DTreeContext *>{}(context_) ^
- DefaultHash<const SocketRef *>{}(socket_ref_);
+ return get_default_hash_2(context_, socket_ref_);
}
/* --------------------------------------------------------------------