|
Blender V5.0
|
#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_path_utils.hh"#include "BLI_string_utf8.h"#include "BLI_time.h"#include "BLT_translation.hh"#include "DNA_dynamicpaint_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BKE_attribute.hh"#include "BKE_context.hh"#include "BKE_deform.hh"#include "BKE_dynamicpaint.h"#include "BKE_global.hh"#include "BKE_main.hh"#include "BKE_modifier.hh"#include "BKE_object_deform.h"#include "BKE_report.hh"#include "BKE_screen.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "DEG_depsgraph_query.hh"#include "ED_mesh.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "WM_api.hh"#include "WM_types.hh"#include "physics_intern.hh"Go to the source code of this file.
Classes | |
| struct | DynamicPaintBakeJob |
Functions | |
| static wmOperatorStatus | surface_slot_add_exec (bContext *C, wmOperator *) |
| void | DPAINT_OT_surface_slot_add (wmOperatorType *ot) |
| static wmOperatorStatus | surface_slot_remove_exec (bContext *C, wmOperator *) |
| void | DPAINT_OT_surface_slot_remove (wmOperatorType *ot) |
| static wmOperatorStatus | type_toggle_exec (bContext *C, wmOperator *op) |
| void | DPAINT_OT_type_toggle (wmOperatorType *ot) |
| static wmOperatorStatus | output_toggle_exec (bContext *C, wmOperator *op) |
| void | DPAINT_OT_output_toggle (wmOperatorType *ot) |
| static void | dpaint_bake_free (void *customdata) |
| static void | dpaint_bake_endjob (void *customdata) |
| static void | dynamicPaint_bakeImageSequence (DynamicPaintBakeJob *job) |
| static void | dpaint_bake_startjob (void *customdata, wmJobWorkerStatus *worker_status) |
| static wmOperatorStatus | dynamicpaint_bake_exec (bContext *C, wmOperator *op) |
| void | DPAINT_OT_bake (wmOperatorType *ot) |
|
static |
Definition at line 309 of file dynamicpaint_ops.cc.
References BLI_time_now_seconds(), DynamicPaintBakeJob::canvas, dynamicPaint_freeSurfaceData(), DynamicPaintCanvasSettings::error, DynamicPaintCanvasSettings::flags, G, G_MAIN, MOD_DPAINT_BAKING, RPT_ERROR, RPT_INFO, RPT_WARNING, DynamicPaintBakeJob::start, DynamicPaintBakeJob::success, DynamicPaintBakeJob::surface, WM_global_report(), WM_global_reportf(), and WM_locked_interface_set().
Referenced by dynamicpaint_bake_exec().
|
static |
Definition at line 303 of file dynamicpaint_ops.cc.
References MEM_freeN().
Referenced by dynamicpaint_bake_exec().
|
static |
Definition at line 431 of file dynamicpaint_ops.cc.
References BKE_spacedata_draw_locks(), BLI_time_now_seconds(), DynamicPaintBakeJob::do_update, wmJobWorkerStatus::do_update, dynamicPaint_bakeImageSequence(), G, DynamicPaintBakeJob::progress, wmJobWorkerStatus::progress, REGION_DRAW_LOCK_BAKING, DynamicPaintBakeJob::start, DynamicPaintBakeJob::stop, wmJobWorkerStatus::stop, and DynamicPaintBakeJob::success.
Referenced by dynamicpaint_bake_exec().
| void DPAINT_OT_bake | ( | wmOperatorType * | ot | ) |
Definition at line 516 of file dynamicpaint_ops.cc.
References dynamicpaint_bake_exec(), ED_operator_object_active_local_editable(), and ot.
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_output_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 259 of file dynamicpaint_ops.cc.
References ED_operator_object_active_local_editable(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, output_toggle_exec(), and RNA_def_enum().
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_surface_slot_add | ( | wmOperatorType * | ot | ) |
Add surface slot.
Definition at line 80 of file dynamicpaint_ops.cc.
References ED_operator_object_active_local_editable(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and surface_slot_add_exec().
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_surface_slot_remove | ( | wmOperatorType * | ot | ) |
Remove surface slot.
Definition at line 128 of file dynamicpaint_ops.cc.
References ED_operator_object_active_local_editable(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and surface_slot_remove_exec().
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_type_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 178 of file dynamicpaint_ops.cc.
References BLT_I18NCONTEXT_ID_SIMULATION, ED_operator_object_active_local_editable(), MOD_DYNAMICPAINT_TYPE_CANVAS, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_prop_dynamicpaint_type_items, and type_toggle_exec().
Referenced by operatortypes_dynamicpaint().
|
static |
Definition at line 458 of file dynamicpaint_ops.cc.
References BKE_modifiers_findby_type(), BKE_report(), DynamicPaintBakeJob::bmain, C, DynamicPaintBakeJob::canvas, DynamicPaintModifierData::canvas, blender::ed::object::context_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), DEG_get_evaluated(), DEG_get_evaluated_scene(), depsgraph, DynamicPaintBakeJob::depsgraph, dpaint_bake_endjob(), dpaint_bake_free(), dpaint_bake_startjob(), eModifierType_DynamicPaint, DynamicPaintCanvasSettings::error, DynamicPaintCanvasSettings::flags, get_activeSurface(), MEM_mallocN(), MOD_DPAINT_BAKING, NC_OBJECT, ND_MODIFIER, DynamicPaintBakeJob::ob, OPERATOR_CANCELLED, OPERATOR_FINISHED, REGION_DRAW_LOCK_BAKING, wmOperator::reports, RPT_ERROR, DynamicPaintBakeJob::scene, DynamicPaintBakeJob::surface, WM_JOB_PROGRESS, WM_JOB_TYPE_DPAINT_BAKE, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), WM_jobs_timer(), and WM_locked_interface_set_with_flags().
Referenced by DPAINT_OT_bake().
|
static |
Definition at line 343 of file dynamicpaint_ops.cc.
References BLI_path_frame(), BLI_path_join, DynamicPaintBakeJob::bmain, DynamicPaintSurface::canvas, RenderData::cfra, DynamicPaintSurface::current_frame, DEG_get_input_scene(), DynamicPaintBakeJob::depsgraph, DynamicPaintBakeJob::do_update, dynamicPaint_calculateFrame(), dynamicPaint_createUVSurface(), dynamicPaint_outputSurfaceImage(), ED_update_for_newframe(), DynamicPaintSurface::end_frame, DynamicPaintCanvasSettings::error, FILE_MAX, DynamicPaintSurface::flags, G, DynamicPaintSurface::image_output_path, MOD_DPAINT_OUT1, MOD_DPAINT_OUT2, MOD_DPAINT_SURFACE_T_PAINT, N_, DynamicPaintBakeJob::ob, DynamicPaintSurface::output_name, DynamicPaintSurface::output_name2, DynamicPaintBakeJob::progress, Scene::r, DynamicPaintBakeJob::scene, DynamicPaintSurface::start_frame, STRNCPY_UTF8, DynamicPaintBakeJob::success, DynamicPaintBakeJob::surface, and DynamicPaintSurface::type.
Referenced by dpaint_bake_startjob().
|
static |
Definition at line 205 of file dynamicpaint_ops.cc.
References BKE_attribute_remove(), BKE_modifiers_findby_type(), BKE_object_defgroup_add_name(), BKE_object_defgroup_find_name(), BKE_object_defgroup_remove(), C, DynamicPaintModifierData::canvas, blender::ed::object::context_active_object(), CTX_data_main(), Object::data, DEG_relations_tag_update(), dynamicPaint_outputLayerExists(), ED_mesh_color_add(), eModifierType_DynamicPaint, DynamicPaintSurface::format, AttributeOwner::from_id(), get_activeSurface(), MOD_DPAINT_SURFACE_F_VERTEX, MOD_DPAINT_SURFACE_T_PAINT, MOD_DPAINT_SURFACE_T_WEIGHT, name, OPERATOR_CANCELLED, OPERATOR_FINISHED, output, DynamicPaintSurface::output_name, DynamicPaintSurface::output_name2, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), and DynamicPaintSurface::type.
Referenced by DPAINT_OT_output_toggle().
|
static |
Definition at line 52 of file dynamicpaint_ops.cc.
References DynamicPaintCanvasSettings::active_sur, BKE_modifiers_findby_type(), C, DynamicPaintModifierData::canvas, blender::ed::object::context_active_object(), CTX_data_scene(), dynamicPaint_createNewSurface(), eModifierType_DynamicPaint, OPERATOR_CANCELLED, OPERATOR_FINISHED, and DynamicPaintSurface::prev.
Referenced by DPAINT_OT_surface_slot_add().
|
static |
Definition at line 95 of file dynamicpaint_ops.cc.
References DynamicPaintCanvasSettings::active_sur, BKE_modifiers_findby_type(), C, DynamicPaintModifierData::canvas, blender::ed::object::context_active_object(), DEG_id_tag_update(), dynamicPaint_freeSurface(), eModifierType_DynamicPaint, ListBase::first, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, DynamicPaintSurface::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, DynamicPaintCanvasSettings::surfaces, and WM_event_add_notifier().
Referenced by DPAINT_OT_surface_slot_remove().
|
static |
Definition at line 143 of file dynamicpaint_ops.cc.
References BKE_modifiers_findby_type(), DynamicPaintModifierData::brush, C, DynamicPaintModifierData::canvas, blender::ed::object::context_active_object(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), dynamicPaint_createType(), dynamicPaint_freeBrush(), dynamicPaint_freeCanvas(), eModifierType_DynamicPaint, Object::id, ID_RECALC_GEOMETRY, MOD_DYNAMICPAINT_TYPE_BRUSH, MOD_DYNAMICPAINT_TYPE_CANVAS, NC_OBJECT, ND_MODIFIER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by DPAINT_OT_type_toggle().