|
Blender V5.0
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_duplilist.hh"#include "BKE_global.hh"#include "BKE_layer.hh"#include "BKE_library.hh"#include "BKE_pointcache.h"#include "DEG_depsgraph.hh"#include "ED_particle.hh"#include "WM_api.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "physics_intern.hh"Go to the source code of this file.
Classes | |
| struct | PointCacheJob |
|
static |
Definition at line 395 of file physics_pointcache.cc.
References BKE_ptcache_add(), BKE_ptcache_id_find(), C, PTCacheID::cache, PTCacheID::cache_ptr, CTX_data_pointer_get_type(), CTX_data_scene(), PTCacheID::default_step, DEG_id_tag_update(), Object::id, ID_RECALC_POINT_CACHE, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, OPERATOR_FINISHED, PTCacheID::ptcaches, ptr, PointCache::step, and WM_event_add_notifier().
Referenced by PTCACHE_OT_add().
|
static |
Definition at line 67 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY_REAL, and ptr.
Referenced by PTCACHE_OT_add(), and PTCACHE_OT_remove().
|
static |
Definition at line 37 of file physics_pointcache.cc.
References C, and CTX_data_scene().
Referenced by PTCACHE_OT_bake_all(), and PTCACHE_OT_free_bake_all().
|
static |
Definition at line 257 of file physics_pointcache.cc.
References C, CTX_wm_manager(), wmOperator::customdata, WM_JOB_TYPE_POINTCACHE, and WM_jobs_kill_type().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 201 of file physics_pointcache.cc.
References all(), BKE_ptcache_bake(), C, wmOperatorType::idname, MEM_freeN(), OPERATOR_FINISHED, ptcache_baker_create(), STREQ, and wmOperator::type.
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 335 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), PointCache::flag, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PTCACHE_BAKED, ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_bake_from_cache().
|
static |
Definition at line 212 of file physics_pointcache.cc.
References all(), PTCacheBaker::bake_job, PointCacheJob::baker, C, CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), wmOperatorType::idname, MEM_mallocN(), NC_OBJECT, ND_POINTCACHE, OPERATOR_RUNNING_MODAL, ptcache_baker_create(), ptcache_job_endjob(), ptcache_job_free(), ptcache_job_startjob(), ptcache_job_update(), STREQ, wmOperator::type, PTCacheBaker::update_progress, PointCacheJob::wm, WM_event_add_modal_handler(), WM_JOB_PROGRESS, WM_JOB_TYPE_POINTCACHE, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), WM_jobs_timer(), and WM_locked_interface_set().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 245 of file physics_pointcache.cc.
References C, CTX_wm_manager(), wmOperator::customdata, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, WM_JOB_TYPE_POINTCACHE, and WM_jobs_test().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 176 of file physics_pointcache.cc.
References all(), PTCacheBaker::anim_init, PTCacheBaker::bake, BKE_ptcache_id_find(), PTCacheBaker::bmain, C, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_pointer_get_type(), CTX_data_scene(), CTX_data_view_layer(), PTCacheBaker::depsgraph, GS, ID_OB, MEM_callocN(), ID::name, PTCacheBaker::pid, ptr, wmOperator::ptr, PTCacheBaker::quick_step, PTCacheBaker::render, RNA_boolean_get(), PTCacheBaker::scene, and PTCacheBaker::view_layer.
Referenced by ptcache_bake_exec(), and ptcache_bake_invoke().
|
static |
Definition at line 162 of file physics_pointcache.cc.
References PointCache::edit, PTCacheEdit::edited, PointCache::flag, PE_free_ptcache_edit(), and PTCACHE_BAKED.
Referenced by ptcache_free_bake_all_exec(), and ptcache_free_bake_exec().
|
static |
Definition at line 266 of file physics_pointcache.cc.
References BKE_ptcache_ids_from_object(), BLI_freelistN(), C, CTX_data_scene(), FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, LISTBASE_FOREACH, MAX_DUPLI_RECUR, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, OPERATOR_FINISHED, ptcache_free_bake(), and WM_event_add_notifier().
Referenced by PTCACHE_OT_free_bake_all().
|
static |
Definition at line 323 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, ptcache_free_bake(), ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_free_bake().
|
static |
Definition at line 103 of file physics_pointcache.cc.
References G, and PointCacheJob::stop.
Referenced by ptcache_job_update().
|
static |
Definition at line 151 of file physics_pointcache.cc.
References PointCacheJob::baker, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, PTCacheID::owner_id, PTCacheBaker::pid, PTCacheBaker::scene, PointCacheJob::wm, WM_locked_interface_set(), and WM_main_add_notifier().
Referenced by ptcache_bake_invoke().
|
static |
Definition at line 96 of file physics_pointcache.cc.
References PointCacheJob::baker, and MEM_freeN().
Referenced by ptcache_bake_invoke().
|
static |
Definition at line 130 of file physics_pointcache.cc.
References PointCacheJob::baker, BKE_ptcache_bake(), PointCacheJob::do_update, wmJobWorkerStatus::do_update, G, PointCacheJob::progress, wmJobWorkerStatus::progress, PointCacheJob::stop, wmJobWorkerStatus::stop, PointCacheJob::wm, and WM_locked_interface_set().
Referenced by ptcache_bake_invoke().
|
static |
Definition at line 118 of file physics_pointcache.cc.
References PointCacheJob::do_update, PointCacheJob::progress, and ptcache_job_break().
Referenced by ptcache_bake_invoke().
| void PTCACHE_OT_add | ( | wmOperatorType * | ot | ) |
Definition at line 435 of file physics_pointcache.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, ptcache_add_new_exec(), and ptcache_add_remove_poll().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_bake | ( | wmOperatorType * | ot | ) |
Definition at line 347 of file physics_pointcache.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), ptcache_poll(), and RNA_def_boolean().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 289 of file physics_pointcache.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, ptcache_bake_all_poll(), ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), and RNA_def_boolean().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_bake_from_cache | ( | wmOperatorType * | ot | ) |
Definition at line 380 of file physics_pointcache.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, ptcache_bake_from_cache_exec(), and ptcache_poll().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_free_bake | ( | wmOperatorType * | ot | ) |
Definition at line 366 of file physics_pointcache.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, ptcache_free_bake_exec(), and ptcache_poll().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_free_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 308 of file physics_pointcache.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, ptcache_bake_all_poll(), and ptcache_free_bake_all_exec().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_remove | ( | wmOperatorType * | ot | ) |
Definition at line 449 of file physics_pointcache.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, ptcache_add_remove_poll(), and ptcache_remove_exec().
Referenced by operatortypes_pointcache().
|
static |
Definition at line 42 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointCache::flag, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY_REAL, PTCACHE_DISK_CACHE, and ptr.
Referenced by PTCACHE_OT_bake(), PTCACHE_OT_bake_from_cache(), and PTCACHE_OT_free_bake().
|
static |
Definition at line 415 of file physics_pointcache.cc.
References BKE_ptcache_free(), BKE_ptcache_id_find(), BLI_remlink(), C, PTCacheID::cache, PTCacheID::cache_ptr, CTX_data_pointer_get_type(), CTX_data_scene(), DEG_id_tag_update(), ListBase::first, Object::id, ID_RECALC_SYNC_TO_EVAL, ListBase::last, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PTCacheID::ptcaches, ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_remove().