diff options
Diffstat (limited to 'source/blender/nodes/NOD_derived_node_tree.hh')
-rw-r--r-- | source/blender/nodes/NOD_derived_node_tree.hh | 5 |
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_); } /* -------------------------------------------------------------------- |