Blender
V3.3
|
Go to the source code of this file.
bool BKE_cache_file_uses_render_procedural | ( | const struct CacheFile * | cache_file, |
struct Scene * | scene | ||
) |
Determine whether the CacheFile should use a render engine procedural. If so, data is not read from the file and bounding boxes are used to represent the objects in the Scene. Render engines will receive the bounding box as a placeholder but can instead load the data directly if they support it.
Referenced by dependsOnTime(), modifyMesh(), and transformcache_evaluate().
Definition at line 324 of file cachefile.c.
References BKE_id_new(), and ID_CF.
Referenced by blender::io::usd::import_startjob(), and import_startjob().
struct CacheFileLayer* BKE_cachefile_add_layer | ( | struct CacheFile * | cache_file, |
const char | filename[1024] | ||
) |
Definition at line 432 of file cachefile.c.
References CacheFile::active_layer, BLI_addtail(), BLI_listbase_count(), BLI_strncpy(), CacheFileLayer::filepath, ListBase::first, CacheFile::layers, MEM_callocN, NULL, and STREQ.
Referenced by cachefile_layer_add_exec().
void BKE_cachefile_eval | ( | struct Main * | bmain, |
struct Depsgraph * | depsgraph, | ||
struct CacheFile * | cache_file | ||
) |
Definition at line 342 of file cachefile.c.
References ABC_create_handle(), BKE_cachefile_filepath_get(), BLI_assert, BLI_duplicatelist(), BLI_freelistN(), BLI_path_extension_check_glob(), BLI_strncpy(), cachefile_handle_free(), CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, DEG_get_original_id(), DEG_is_active(), depsgraph, FILE_MAX, ListBase::first, CacheFile::handle, CacheFile::handle_filepath, CacheFile::id, CacheFile::layers, LIB_TAG_COPIED_ON_WRITE, CacheFile::object_paths, STREQ, ID::tag, CacheFile::type, and USD_create_handle().
Referenced by blender::deg::DepsgraphNodeBuilder::build_cachefile().
bool BKE_cachefile_filepath_get | ( | const struct Main * | bmain, |
const struct Depsgraph * | depsgrah, | ||
const struct CacheFile * | cache_file, | ||
char | r_filename[1024] | ||
) |
struct CacheFileLayer* BKE_cachefile_get_active_layer | ( | struct CacheFile * | cache_file | ) |
Definition at line 452 of file cachefile.c.
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 | ( | struct CacheFile * | cache_file, |
struct CacheReader ** | reader | ||
) |
Definition at line 223 of file cachefile.c.
References ABC_CacheReader_free(), BLI_assert, BLI_gset_remove(), BLI_spin_lock(), BLI_spin_unlock(), CACHE_FILE_TYPE_INVALID, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheFile::handle_readers, CacheFile::id, LIB_TAG_COPIED_ON_WRITE, NULL, spin, ID::tag, CacheFile::type, UNUSED_VARS, and USD_CacheReader_free().
Referenced by freeData(), and transformcache_free().
void BKE_cachefile_reader_open | ( | struct CacheFile * | cache_file, |
struct CacheReader ** | reader, | ||
struct Object * | object, | ||
const char * | object_path | ||
) |
Definition at line 174 of file cachefile.c.
References BLI_assert, BLI_gset_ptr_new(), BLI_gset_reinsert(), BLI_gset_remove(), BLI_spin_lock(), BLI_spin_unlock(), CACHE_FILE_TYPE_INVALID, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheReader_open_alembic_object(), CacheReader_open_usd_object(), CacheFile::handle, CacheFile::handle_readers, CacheFile::id, LIB_TAG_COPIED_ON_WRITE, NULL, spin, ID::tag, CacheFile::type, and UNUSED_VARS.
Referenced by modifyMesh(), and transformcache_evaluate().
Definition at line 331 of file cachefile.c.
References cachefile_handle_free(), DEG_get_evaluated_id(), DEG_id_tag_update(), depsgraph, CacheFile::id, and ID_RECALC_COPY_ON_WRITE.
Referenced by reload_cachefile().
void BKE_cachefile_remove_layer | ( | struct CacheFile * | cache_file, |
struct CacheFileLayer * | layer | ||
) |
Definition at line 457 of file cachefile.c.
References CacheFile::active_layer, BLI_remlink(), CacheFile::layers, and MEM_freeN.
Referenced by cachefile_layer_remove_exec().
Referenced by modifyMesh(), and transformcache_evaluate().
Definition at line 169 of file cachefile.c.
References BLI_spin_end(), and spin.
Referenced by BKE_blender_free().
Definition at line 164 of file cachefile.c.
References BLI_spin_init(), and spin.
Referenced by main().