|
Blender V4.3
|
Rigid Body world editing operators. More...
#include <cstdlib>#include <cstring>#include "DNA_object_types.h"#include "DNA_rigidbody_types.h"#include "DNA_scene_types.h"#include "BKE_context.hh"#include "BKE_report.hh"#include "BKE_rigidbody.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "RNA_access.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_screen.hh"#include "physics_intern.hh"Go to the source code of this file.
Functions | |
| static bool | ED_rigidbody_world_active_poll (bContext *C) |
| static bool | ED_rigidbody_world_add_poll (bContext *C) |
| static int | rigidbody_world_add_exec (bContext *C, wmOperator *) |
| void | RIGIDBODY_OT_world_add (wmOperatorType *ot) |
| static int | rigidbody_world_remove_exec (bContext *C, wmOperator *op) |
| void | RIGIDBODY_OT_world_remove (wmOperatorType *ot) |
| static int | rigidbody_world_export_exec (bContext *C, wmOperator *op) |
| static int | rigidbody_world_export_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | RIGIDBODY_OT_world_export (wmOperatorType *ot) |
Rigid Body world editing operators.
Definition in file rigidbody_world.cc.
|
static |
Definition at line 41 of file rigidbody_world.cc.
References CTX_data_scene().
Referenced by RIGIDBODY_OT_world_export(), and RIGIDBODY_OT_world_remove().
|
static |
Definition at line 46 of file rigidbody_world.cc.
References CTX_data_scene().
Referenced by RIGIDBODY_OT_world_add().
| void RIGIDBODY_OT_world_add | ( | wmOperatorType * | ot | ) |
Definition at line 74 of file rigidbody_world.cc.
References wmOperatorType::description, ED_rigidbody_world_add_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and rigidbody_world_add_exec().
Referenced by operatortypes_particle().
| void RIGIDBODY_OT_world_export | ( | wmOperatorType * | ot | ) |
Definition at line 174 of file rigidbody_world.cc.
References wmOperatorType::description, ED_rigidbody_world_active_poll(), wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, rigidbody_world_export_exec(), rigidbody_world_export_invoke(), WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
| void RIGIDBODY_OT_world_remove | ( | wmOperatorType * | ot | ) |
Definition at line 113 of file rigidbody_world.cc.
References wmOperatorType::description, ED_rigidbody_world_active_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and rigidbody_world_remove_exec().
Referenced by operatortypes_particle().
|
static |
Definition at line 57 of file rigidbody_world.cc.
References BKE_rigidbody_create_world(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update_ex(), DEG_relations_tag_update(), ID_RECALC_ANIMATION, and OPERATOR_FINISHED.
Referenced by RIGIDBODY_OT_world_add().
|
static |
Definition at line 133 of file rigidbody_world.cc.
References BKE_report(), CTX_data_scene(), ELEM, FILE_MAX, OPERATOR_CANCELLED, OPERATOR_FINISHED, RigidBodyWorld_Shared::physics_world, wmOperator::ptr, RB_dworld_export(), wmOperator::reports, RNA_string_get(), RPT_ERROR, and RigidBodyWorld::shared.
Referenced by RIGIDBODY_OT_world_export(), and rigidbody_world_export_invoke().
|
static |
Definition at line 157 of file rigidbody_world.cc.
References OPERATOR_RUNNING_MODAL, wmOperator::ptr, rigidbody_world_export_exec(), RNA_boolean_set(), RNA_string_set(), RNA_struct_property_is_set(), USER_RELPATHS, and WM_event_add_fileselect().
Referenced by RIGIDBODY_OT_world_export().
|
static |
Definition at line 91 of file rigidbody_world.cc.
References BKE_report(), BKE_rigidbody_free_world(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update_ex(), DEG_relations_tag_update(), ELEM, ID_RECALC_ANIMATION, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and RPT_ERROR.
Referenced by RIGIDBODY_OT_world_remove().