|
Blender V4.3
|
#include <memory>#include "BLI_path_utils.hh"#include "BLI_string.h"#include "AS_asset_library.hh"#include "BKE_asset.hh"#include "BLO_read_write.hh"#include "DNA_asset_types.h"#include "MEM_guardedalloc.h"Go to the source code of this file.
Functions | |
| bool | operator== (const AssetWeakReference &a, const AssetWeakReference &b) |
| void | BKE_asset_weak_reference_write (BlendWriter *writer, const AssetWeakReference *weak_ref) |
| void | BKE_asset_weak_reference_read (BlendDataReader *reader, AssetWeakReference *weak_ref) |
| void | BKE_asset_catalog_path_list_free (ListBase &catalog_path_list) |
| ListBase | BKE_asset_catalog_path_list_duplicate (const ListBase &catalog_path_list) |
| void | BKE_asset_catalog_path_list_blend_write (BlendWriter *writer, const ListBase &catalog_path_list) |
| void | BKE_asset_catalog_path_list_blend_read_data (BlendDataReader *reader, ListBase &catalog_path_list) |
| bool | BKE_asset_catalog_path_list_has_path (const ListBase &catalog_path_list, const char *catalog_path) |
| void | BKE_asset_catalog_path_list_add_path (ListBase &catalog_path_list, const char *catalog_path) |
| void BKE_asset_catalog_path_list_add_path | ( | ListBase & | catalog_path_list, |
| const char * | catalog_path ) |
Definition at line 173 of file asset_weak_reference.cc.
References BLI_addtail(), BLI_strdup(), and AssetCatalogPathLink::path.
Referenced by BKE_preferences_asset_shelf_settings_ensure_catalog_path_enabled(), and blender::ed::asset::shelf::settings_set_catalog_path_enabled().
| void BKE_asset_catalog_path_list_blend_read_data | ( | BlendDataReader * | reader, |
| ListBase & | catalog_path_list ) |
Definition at line 157 of file asset_weak_reference.cc.
References BLO_read_string(), BLO_read_struct_list, and LISTBASE_FOREACH.
Referenced by read_userdef(), and blender::ed::asset::shelf::settings_blend_read_data().
| void BKE_asset_catalog_path_list_blend_write | ( | BlendWriter * | writer, |
| const ListBase & | catalog_path_list ) |
Definition at line 148 of file asset_weak_reference.cc.
References BLO_write_string(), BLO_write_struct, and LISTBASE_FOREACH.
Referenced by blender::ed::asset::shelf::settings_blend_write(), and write_userdef().
Definition at line 134 of file asset_weak_reference.cc.
References BLI_addtail(), BLI_strdup(), LISTBASE_FOREACH, and AssetCatalogPathLink::path.
| void BKE_asset_catalog_path_list_free | ( | ListBase & | catalog_path_list | ) |
Definition at line 125 of file asset_weak_reference.cc.
References BLI_assert, BLI_freelinkN(), BLI_listbase_is_empty(), and LISTBASE_FOREACH_MUTABLE.
Referenced by BKE_blender_userdef_data_free(), and blender::ed::asset::shelf::settings_clear_enabled_catalogs().
| bool BKE_asset_catalog_path_list_has_path | ( | const ListBase & | catalog_path_list, |
| const char * | catalog_path ) |
Definition at line 166 of file asset_weak_reference.cc.
References BLI_findstring_ptr(), and offsetof.
Referenced by BKE_preferences_asset_shelf_settings_is_catalog_path_enabled(), blender::ed::asset::shelf::settings_is_catalog_path_enabled(), and blender::ed::asset::shelf::settings_set_catalog_path_enabled().
| void BKE_asset_weak_reference_read | ( | BlendDataReader * | reader, |
| AssetWeakReference * | weak_ref ) |
Definition at line 119 of file asset_weak_reference.cc.
References AssetWeakReference::asset_library_identifier, BLO_read_string(), and AssetWeakReference::relative_asset_identifier.
Referenced by BKE_paint_blend_read_data().
| void BKE_asset_weak_reference_write | ( | BlendWriter * | writer, |
| const AssetWeakReference * | weak_ref ) |
Definition at line 112 of file asset_weak_reference.cc.
References AssetWeakReference::asset_library_identifier, BLO_write_string(), BLO_write_struct, and AssetWeakReference::relative_asset_identifier.
Referenced by BKE_paint_blend_write().
| bool operator== | ( | const AssetWeakReference & | a, |
| const AssetWeakReference & | b ) |
Definition at line 76 of file asset_weak_reference.cc.
References AssetWeakReference::asset_library_identifier, b, and BLI_path_cmp_normalized().
Referenced by ccl_try_align().