Blender V5.3
ED_asset_import.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
8
9#pragma once
10
11#include <optional>
12
13namespace blender {
14
15struct ID;
16struct Main;
17struct ReportList;
18struct Scene;
19struct View3D;
20struct ViewLayer;
21namespace asset_system {
23}
24
25namespace ed::asset {
26
32
44 Main &bmain,
46 int flags = 0, /* #eFileSel_Params_Flag + #eBLOLibLinkFlags */
47 const std::optional<eAssetImportMethod> import_method = std::nullopt,
48 const std::optional<ImportInstantiateContext> instantiate_context = std::nullopt,
49 ReportList *reports = nullptr);
50
51} // namespace ed::asset
52} // namespace blender
ID * asset_local_id_ensure_imported(Main &bmain, const asset_system::AssetRepresentation &asset, int flags=0, const std::optional< eAssetImportMethod > import_method=std::nullopt, const std::optional< ImportInstantiateContext > instantiate_context=std::nullopt, ReportList *reports=nullptr)
BMesh Iterators.