|
Blender V4.3
|
#include <cmath>#include <cstdio>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_string.h"#include "BLI_time.h"#include "BLI_utildefines.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 int | surface_slot_add_exec (bContext *C, wmOperator *) |
| void | DPAINT_OT_surface_slot_add (wmOperatorType *ot) |
| static int | surface_slot_remove_exec (bContext *C, wmOperator *) |
| void | DPAINT_OT_surface_slot_remove (wmOperatorType *ot) |
| static int | type_toggle_exec (bContext *C, wmOperator *op) |
| void | DPAINT_OT_type_toggle (wmOperatorType *ot) |
| static int | 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 int | dynamicpaint_bake_exec (bContext *C, wmOperator *op) |
| void | DPAINT_OT_bake (wmOperatorType *ot) |
|
static |
Definition at line 312 of file dynamicpaint_ops.cc.
References BKE_spacedata_draw_locks(), BLI_time_now_seconds(), DynamicPaintBakeJob::canvas, dynamicPaint_freeSurfaceData(), DynamicPaintCanvasSettings::error, DynamicPaintCanvasSettings::flags, G, G_MAIN, RPT_ERROR, RPT_INFO, RPT_WARNING, DynamicPaintBakeJob::start, DynamicPaintBakeJob::success, DynamicPaintBakeJob::surface, WM_report(), WM_reportf(), and WM_set_locked_interface().
Referenced by dynamicpaint_bake_exec().
|
static |
Definition at line 306 of file dynamicpaint_ops.cc.
References MEM_freeN().
Referenced by dynamicpaint_bake_exec().
|
static |
Definition at line 435 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, DynamicPaintBakeJob::start, DynamicPaintBakeJob::stop, wmJobWorkerStatus::stop, and DynamicPaintBakeJob::success.
Referenced by dynamicpaint_bake_exec().
| void DPAINT_OT_bake | ( | wmOperatorType * | ot | ) |
Definition at line 521 of file dynamicpaint_ops.cc.
References wmOperatorType::description, dynamicpaint_bake_exec(), ED_operator_object_active_local_editable(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_output_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 262 of file dynamicpaint_ops.cc.
References wmOperatorType::description, ED_operator_object_active_local_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, output_toggle_exec(), wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_surface_slot_add | ( | wmOperatorType * | ot | ) |
Add surface slot.
Definition at line 83 of file dynamicpaint_ops.cc.
References wmOperatorType::description, ED_operator_object_active_local_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and surface_slot_add_exec().
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_surface_slot_remove | ( | wmOperatorType * | ot | ) |
Remove surface slot.
Definition at line 131 of file dynamicpaint_ops.cc.
References wmOperatorType::description, ED_operator_object_active_local_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and surface_slot_remove_exec().
Referenced by operatortypes_dynamicpaint().
| void DPAINT_OT_type_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 181 of file dynamicpaint_ops.cc.
References BLT_I18NCONTEXT_ID_SIMULATION, wmOperatorType::description, ED_operator_object_active_local_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MOD_DYNAMICPAINT_TYPE_CANVAS, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_prop_dynamicpaint_type_items, wmOperatorType::srna, and type_toggle_exec().
Referenced by operatortypes_dynamicpaint().
|
static |
Definition at line 462 of file dynamicpaint_ops.cc.
References BKE_modifiers_findby_type(), BKE_report(), DynamicPaintBakeJob::bmain, DynamicPaintBakeJob::canvas, DynamicPaintModifierData::canvas, blender::ed::object::context_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), DEG_get_evaluated_object(), 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, 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_set_locked_interface().
Referenced by DPAINT_OT_bake().
|
static |
Definition at line 347 of file dynamicpaint_ops.cc.
References BLI_path_frame(), BLI_path_join, DynamicPaintBakeJob::bmain, RenderData::cfra, DEG_get_input_scene(), DynamicPaintBakeJob::depsgraph, DynamicPaintBakeJob::do_update, dynamicPaint_calculateFrame(), dynamicPaint_createUVSurface(), dynamicPaint_outputSurfaceImage(), ED_update_for_newframe(), DynamicPaintCanvasSettings::error, FILE_MAX, G, int, MOD_DPAINT_OUT1, MOD_DPAINT_OUT2, MOD_DPAINT_SURFACE_T_PAINT, N_, DynamicPaintBakeJob::ob, DynamicPaintBakeJob::progress, Scene::r, DynamicPaintBakeJob::scene, STRNCPY, DynamicPaintBakeJob::success, and DynamicPaintBakeJob::surface.
Referenced by dpaint_bake_startjob().
|
static |
Definition at line 208 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(), DynamicPaintModifierData::canvas, blender::ed::object::context_object(), CTX_data_main(), Object::data, DEG_relations_tag_update(), dynamicPaint_outputLayerExists(), ED_mesh_color_add(), eModifierType_DynamicPaint, AttributeOwner::from_id(), get_activeSurface(), MOD_DPAINT_SURFACE_F_VERTEX, MOD_DPAINT_SURFACE_T_PAINT, MOD_DPAINT_SURFACE_T_WEIGHT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, and RNA_enum_get().
Referenced by DPAINT_OT_output_toggle().
|
static |
Definition at line 55 of file dynamicpaint_ops.cc.
References DynamicPaintCanvasSettings::active_sur, BKE_modifiers_findby_type(), DynamicPaintModifierData::canvas, blender::ed::object::context_object(), CTX_data_scene(), dynamicPaint_createNewSurface(), eModifierType_DynamicPaint, OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by DPAINT_OT_surface_slot_add().
|
static |
Definition at line 98 of file dynamicpaint_ops.cc.
References DynamicPaintCanvasSettings::active_sur, BKE_modifiers_findby_type(), DynamicPaintModifierData::canvas, blender::ed::object::context_object(), DEG_id_tag_update(), dynamicPaint_freeSurface(), eModifierType_DynamicPaint, ListBase::first, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, OPERATOR_CANCELLED, OPERATOR_FINISHED, DynamicPaintCanvasSettings::surfaces, and WM_event_add_notifier().
Referenced by DPAINT_OT_surface_slot_remove().
|
static |
Definition at line 146 of file dynamicpaint_ops.cc.
References BKE_modifiers_findby_type(), DynamicPaintModifierData::brush, DynamicPaintModifierData::canvas, blender::ed::object::context_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().