|
Blender V5.0
|
Go to the source code of this file.
Functions | |
| void * | BKE_cachefile_add (Main *bmain, const char *name) |
| void | BKE_cachefile_reload (Depsgraph *depsgraph, CacheFile *cache_file) |
| void | BKE_cachefile_eval (Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file) |
| bool | BKE_cachefile_filepath_get (const Main *bmain, const Depsgraph *depsgraph, const CacheFile *cache_file, char r_filepath[1024]) |
| double | BKE_cachefile_time_offset (const CacheFile *cache_file, double time, double fps) |
| double | BKE_cachefile_frame_offset (const CacheFile *cache_file, double time) |
| void | BKE_cachefile_reader_open (CacheFile *cache_file, CacheReader **reader, Object *object, const char *object_path) |
| void | BKE_cachefile_reader_free (CacheFile *cache_file, CacheReader **reader) |
| CacheFileLayer * | BKE_cachefile_add_layer (CacheFile *cache_file, const char filepath[1024]) |
| CacheFileLayer * | BKE_cachefile_get_active_layer (CacheFile *cache_file) |
| void | BKE_cachefile_remove_layer (CacheFile *cache_file, CacheFileLayer *layer) |
| void * BKE_cachefile_add | ( | Main * | bmain, |
| const char * | name ) |
Definition at line 311 of file cachefile.cc.
References BKE_id_new(), and name.
Referenced by import_file(), and blender::io::usd::import_startjob().
| CacheFileLayer * BKE_cachefile_add_layer | ( | CacheFile * | cache_file, |
| const char | filepath[1024] ) |
Add a layer to the cache_file. Return NULL if the filepath is already that of an existing layer or if the number of layers exceeds the maximum allowed layer count.
Definition at line 418 of file cachefile.cc.
References CacheFile::active_layer, BLI_addtail(), BLI_listbase_count(), CacheFileLayer::filepath, CacheFile::layers, LISTBASE_FOREACH, MEM_callocN(), STREQ, and STRNCPY().
Referenced by cachefile_layer_add_exec().
Definition at line 329 of file cachefile.cc.
References ABC_create_handle(), BKE_cachefile_filepath_get(), BLI_assert, BLI_duplicatelist(), BLI_freelistN(), BLI_path_extension_check_glob(), cachefile_handle_free(), CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, DEG_get_original(), DEG_is_active(), depsgraph, FILE_MAX, ListBase::first, CacheFile::handle, CacheFile::handle_filepath, CacheFile::id, ID_TAG_COPIED_ON_EVAL, CacheFile::layers, CacheFile::object_paths, STREQ, STRNCPY(), ID::tag, CacheFile::type, and blender::io::usd::USD_create_handle().
Referenced by blender::deg::DepsgraphNodeBuilder::build_cachefile().
| bool BKE_cachefile_filepath_get | ( | const Main * | bmain, |
| const Depsgraph * | depsgraph, | ||
| const CacheFile * | cache_file, | ||
| char | r_filepath[1024] ) |
References depsgraph.
| double BKE_cachefile_frame_offset | ( | const CacheFile * | cache_file, |
| double | time ) |
Definition at line 411 of file cachefile.cc.
References CacheFile::frame, CacheFile::frame_offset, CacheFile::is_sequence, and CacheFile::override_frame.
Referenced by modify_geometry_set(), and modify_mesh().
| CacheFileLayer * BKE_cachefile_get_active_layer | ( | CacheFile * | cache_file | ) |
Definition at line 438 of file cachefile.cc.
References CacheFile::active_layer, BLI_findlink(), and CacheFile::layers.
Referenced by cachefile_layer_move_exec(), and cachefile_layer_remove_exec().
| void BKE_cachefile_reader_free | ( | CacheFile * | cache_file, |
| CacheReader ** | reader ) |
Definition at line 210 of file cachefile.cc.
References ABC_CacheReader_free(), BLI_assert, BLI_gset_remove(), CACHE_FILE_TYPE_INVALID, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheFile::handle_readers, CacheFile::id, ID_TAG_COPIED_ON_EVAL, lock, ID::tag, CacheFile::type, UNUSED_VARS, and blender::io::usd::USD_CacheReader_free().
Referenced by free_data(), and transformcache_free().
| void BKE_cachefile_reader_open | ( | CacheFile * | cache_file, |
| CacheReader ** | reader, | ||
| Object * | object, | ||
| const char * | object_path ) |
Definition at line 160 of file cachefile.cc.
References BLI_assert, BLI_gset_ptr_new(), BLI_gset_reinsert(), BLI_gset_remove(), CACHE_FILE_TYPE_INVALID, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheReader_open_alembic_object(), blender::io::usd::CacheReader_open_usd_object(), CacheFile::handle, CacheFile::handle_readers, CacheFile::id, ID_TAG_COPIED_ON_EVAL, CacheFile::is_sequence, lock, ID::tag, CacheFile::type, and UNUSED_VARS.
Referenced by modify_geometry_set(), modify_mesh(), and transformcache_evaluate().
| void BKE_cachefile_reload | ( | Depsgraph * | depsgraph, |
| CacheFile * | cache_file ) |
Definition at line 318 of file cachefile.cc.
References cachefile_handle_free(), DEG_get_evaluated(), DEG_id_tag_update(), depsgraph, CacheFile::id, and ID_RECALC_SYNC_TO_EVAL.
Referenced by reload_cachefile().
| void BKE_cachefile_remove_layer | ( | CacheFile * | cache_file, |
| CacheFileLayer * | layer ) |
Definition at line 444 of file cachefile.cc.
References CacheFile::active_layer, BLI_remlink(), CacheFile::layers, and MEM_freeN().
Referenced by cachefile_layer_remove_exec().
| double BKE_cachefile_time_offset | ( | const CacheFile * | cache_file, |
| double | time, | ||
| double | fps ) |
Definition at line 404 of file cachefile.cc.
References CacheFile::frame, CacheFile::frame_offset, CacheFile::is_sequence, and CacheFile::override_frame.
Referenced by BKE_cachefile_filepath_get(), modify_geometry_set(), modify_mesh(), and transformcache_evaluate().