Blender V4.3
AssetTypeInfo Struct Reference

#include <BKE_asset.hh>

Public Attributes

PreSaveFn pre_save_fn
 
OnMarkAssetFn on_mark_asset_fn
 
OnClearAssetDataFn on_clear_asset_fn
 

Detailed Description

Definition at line 29 of file BKE_asset.hh.

Member Data Documentation

◆ on_clear_asset_fn

OnClearAssetDataFn AssetTypeInfo::on_clear_asset_fn

Should be called whenever a local asset gets cleared of its asset data but stays available otherwise, i.e. when an asset data-block is turned back into a normal data-block.

Definition at line 40 of file BKE_asset.hh.

Referenced by BKE_lib_id_clear_library_data().

◆ on_mark_asset_fn

OnMarkAssetFn AssetTypeInfo::on_mark_asset_fn

Definition at line 35 of file BKE_asset.hh.

◆ pre_save_fn

PreSaveFn AssetTypeInfo::pre_save_fn

For local assets (assets in the current .blend file), a callback to execute before the file is saved.

Definition at line 34 of file BKE_asset.hh.

Referenced by blender::ed::asset::pre_save_assets().


The documentation for this struct was generated from the following file: