Blender V4.3
ED_asset_mark_clear.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
9#pragma once
10
11struct AssetMetaData;
12struct bContext;
13struct ID;
14struct Main;
15
16namespace blender::ed::asset {
17
25bool mark_id(ID *id);
26
32void generate_preview(const bContext *C, ID *id);
33
42bool clear_id(ID *id);
43
54bool copy_to_id(const AssetMetaData *asset_data, ID *destination);
55
56void pre_save_assets(Main *bmain);
57
59
60} // namespace blender::ed::asset
bool copy_to_id(const AssetMetaData *asset_data, ID *destination)
bool can_mark_single_from_context(const bContext *C)
void generate_preview(const bContext *C, ID *id)
void pre_save_assets(Main *bmain)
The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data),...
Definition DNA_ID.h:413