Blender V4.3
BLODataBlockInfo Struct Reference

#include <BLO_readfile.hh>

Public Attributes

char name [64]
 
AssetMetaDataasset_data
 
bool free_asset_data
 
bool no_preview_found
 

Detailed Description

Definition at line 224 of file BLO_readfile.hh.

Member Data Documentation

◆ asset_data

◆ free_asset_data

bool BLODataBlockInfo::free_asset_data

Ownership over asset_data above can be "stolen out" of this struct, for more permanent storage. In that case, set this to false to avoid double freeing of the stolen data.

Definition at line 229 of file BLO_readfile.hh.

Referenced by BLO_blendhandle_get_datablock_info(), BLO_datablock_info_free(), blender::ed::file::indexer::file_indexer_entry_create_from_datablock_info(), filelist_readjob_list_lib_add_datablock(), and blender::ed::asset::index::init_indexer_entry_from_value().

◆ name

◆ no_preview_found

bool BLODataBlockInfo::no_preview_found

Optimization: Tag data-blocks for which we know there is no preview. Knowing this can be used to skip the (potentially expensive) preview loading process. If this is set to true it means we looked for a preview and couldn't find one. False may mean that either no preview was found, or that it wasn't looked for in the first place.

Definition at line 236 of file BLO_readfile.hh.

Referenced by BLO_blendhandle_get_datablock_info(), and filelist_readjob_list_lib_add_datablock().


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