52 mutable std::string relative_identifier_;
54 struct ExternalAsset {
57 std::unique_ptr<AssetMetaData> metadata_ =
nullptr;
79 std::unique_ptr<OnlineAssetInfo> online_info_;
81 std::variant<ExternalAsset, ID *> asset_;
95 std::unique_ptr<AssetMetaData>
metadata,
103 std::unique_ptr<AssetMetaData>
metadata,
Enumerations for DNA_ID.h.
AssetRepresentation(StringRef relative_asset_path, StringRef name, int id_type, std::unique_ptr< AssetMetaData > metadata, AssetLibrary &owner_asset_library)
PreviewImage * get_preview() const
std::string full_path() const
bool needs_download() const
AssetLibrary & owner_asset_library() const
bool is_potentially_editable_asset_blend() const
friend class AssetLibrary
AssetMetaData & get_metadata() const
std::optional< StringRefNull > online_asset_preview_url() const
bool is_online_only() const
void online_info_set(OnlineAssetInfo info)
ID_Type get_id_type() const
RemoteAssetFileStatus remote_file_status() const
void ensure_previewable(const bContext &C, ReportList *reports=nullptr)
StringRefNull library_relative_identifier() const
AssetWeakReference make_weak_reference() const
Span< OnlineAssetFile > online_asset_files() const
std::string full_library_path() const
bool get_use_relative_path() const
std::optional< eAssetImportMethod > get_import_method() const
StringRefNull get_name() const
void remote_file_status_set(RemoteAssetFileStatus status)
bool may_override_import_method() const
std::optional< StringRefNull > online_asset_preview_hash() const
void online_asset_mark_downloaded()
std::optional< int64_t > online_asset_files_combined_size_in_bytes() const
NonCopyable(const NonCopyable &other)=delete
NonMovable(NonMovable &&other)=delete