Blender
V3.3
|
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_layer.h"
#include "BKE_pointcache.h"
#include "DEG_depsgraph.h"
#include "ED_particle.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "physics_intern.h"
Go to the source code of this file.
Classes | |
struct | PointCacheJob |
Typedefs | |
typedef struct PointCacheJob | PointCacheJob |
typedef struct PointCacheJob PointCacheJob |
|
static |
Definition at line 394 of file physics_pointcache.c.
References BKE_ptcache_add(), BKE_ptcache_id_find(), C, CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, DEG_id_tag_update(), Object::id, ID_RECALC_POINT_CACHE, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptr, scene, PointCache::step, and WM_event_add_notifier().
Referenced by PTCACHE_OT_add().
Definition at line 66 of file physics_pointcache.c.
References C, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, NULL, PointerRNA::owner_id, and ptr.
Referenced by PTCACHE_OT_add(), and PTCACHE_OT_remove().
Definition at line 36 of file physics_pointcache.c.
References C, CTX_data_scene(), and NULL.
Referenced by PTCACHE_OT_bake_all(), and PTCACHE_OT_free_bake_all().
|
static |
Definition at line 255 of file physics_pointcache.c.
References C, CTX_wm_manager(), wmOperator::customdata, scene, WM_JOB_TYPE_POINTCACHE, and WM_jobs_kill_type().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 199 of file physics_pointcache.c.
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 334 of file physics_pointcache.c.
References C, CTX_data_pointer_get_type(), PointerRNA::data, PointCache::flag, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, PTCACHE_BAKED, ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_bake_from_cache().
|
static |
Definition at line 210 of file physics_pointcache.c.
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, NULL, 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_set_locked_interface().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 243 of file physics_pointcache.c.
References C, CTX_wm_manager(), wmOperator::customdata, if(), OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, scene, WM_JOB_TYPE_POINTCACHE, and WM_jobs_test().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 175 of file physics_pointcache.c.
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(), PointerRNA::data, PTCacheBaker::depsgraph, MEM_callocN, PointerRNA::owner_id, PTCacheBaker::pid, wmOperator::ptr, 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 161 of file physics_pointcache.c.
References PointCache::edit, PTCacheEdit::edited, PointCache::flag, NULL, PE_free_ptcache_edit(), and PTCACHE_BAKED.
Referenced by ptcache_free_bake_all_exec(), and ptcache_free_bake_exec().
|
static |
Definition at line 264 of file physics_pointcache.c.
References BKE_ptcache_ids_from_object(), BLI_freelistN(), C, PTCacheID::cache, CTX_data_scene(), ListBase::first, FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, MAX_DUPLI_RECUR, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, PTCacheID::next, OPERATOR_FINISHED, ptcache_free_bake(), scene, and WM_event_add_notifier().
Referenced by PTCACHE_OT_free_bake_all().
|
static |
Definition at line 322 of file physics_pointcache.c.
References C, CTX_data_pointer_get_type(), PointerRNA::data, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptcache_free_bake(), ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_free_bake().
|
static |
Definition at line 102 of file physics_pointcache.c.
References G, and PointCacheJob::stop.
Referenced by ptcache_job_update().
Definition at line 150 of file physics_pointcache.c.
References PointCacheJob::baker, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, PTCacheID::owner_id, PTCacheBaker::pid, PTCacheBaker::scene, scene, PointCacheJob::wm, WM_main_add_notifier(), and WM_set_locked_interface().
Referenced by ptcache_bake_invoke().
Definition at line 95 of file physics_pointcache.c.
References PointCacheJob::baker, and MEM_freeN.
Referenced by ptcache_bake_invoke().
|
static |
Definition at line 129 of file physics_pointcache.c.
References PointCacheJob::baker, BKE_ptcache_bake(), PointCacheJob::do_update, G, PointCacheJob::progress, PointCacheJob::stop, PointCacheJob::wm, and WM_set_locked_interface().
Referenced by ptcache_bake_invoke().
Definition at line 117 of file physics_pointcache.c.
References PointCacheJob::do_update, PointCacheJob::progress, and ptcache_job_break().
Referenced by ptcache_bake_invoke().
void PTCACHE_OT_add | ( | wmOperatorType * | ot | ) |
Definition at line 434 of file physics_pointcache.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_add_new_exec(), and ptcache_add_remove_poll().
Referenced by operatortypes_pointcache().
void PTCACHE_OT_bake | ( | wmOperatorType * | ot | ) |
Definition at line 346 of file physics_pointcache.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), ptcache_poll(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by operatortypes_pointcache().
void PTCACHE_OT_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 288 of file physics_pointcache.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_bake_all_poll(), ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by operatortypes_pointcache().
void PTCACHE_OT_bake_from_cache | ( | wmOperatorType * | ot | ) |
Definition at line 379 of file physics_pointcache.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_bake_from_cache_exec(), and ptcache_poll().
Referenced by operatortypes_pointcache().
void PTCACHE_OT_free_bake | ( | wmOperatorType * | ot | ) |
Definition at line 365 of file physics_pointcache.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_free_bake_exec(), and ptcache_poll().
Referenced by operatortypes_pointcache().
void PTCACHE_OT_free_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 307 of file physics_pointcache.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_bake_all_poll(), and ptcache_free_bake_all_exec().
Referenced by operatortypes_pointcache().
void PTCACHE_OT_remove | ( | wmOperatorType * | ot | ) |
Definition at line 448 of file physics_pointcache.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_add_remove_poll(), and ptcache_remove_exec().
Referenced by operatortypes_pointcache().
Definition at line 41 of file physics_pointcache.c.
References C, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, PointCache::flag, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, NULL, PointerRNA::owner_id, PTCACHE_DISK_CACHE, and ptr.
Referenced by PTCACHE_OT_bake(), PTCACHE_OT_bake_from_cache(), and PTCACHE_OT_free_bake().
|
static |
Definition at line 414 of file physics_pointcache.c.
References BKE_ptcache_free(), BKE_ptcache_id_find(), BLI_remlink(), C, CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, DEG_id_tag_update(), Object::id, ID_RECALC_COPY_ON_WRITE, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptr, scene, and WM_event_add_notifier().
Referenced by PTCACHE_OT_remove().