Blender V5.3
asset_library_reference.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "BLI_hash.hh"
14
15#include "DNA_asset_types.h"
16
17namespace blender {
18
20{
21 return (a.type == b.type) &&
22 ((a.type == ASSET_LIBRARY_CUSTOM) ? (a.custom_library_index == b.custom_library_index) :
23 true);
24}
25
28 {
29 return get_default_hash(value.type, value.custom_library_index);
30 }
31};
32
33} // namespace blender
bool operator==(const Error &left, const Error &right)
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
@ ASSET_LIBRARY_CUSTOM
constexpr uint64_t get_default_hash(const T &v, const Args &...args)
Definition BLI_hash.hh:252
uint64_t operator()(const AssetLibraryReference &value) const