|
Blender V5.0
|
Rigid Body world editing operators. More...
#include <cstdlib>#include <cstring>#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 | rigidbody_world_active_poll (bContext *C) |
| static bool | rigidbody_world_add_poll (bContext *C) |
| static wmOperatorStatus | rigidbody_world_add_exec (bContext *C, wmOperator *) |
| void | RIGIDBODY_OT_world_add (wmOperatorType *ot) |
| static wmOperatorStatus | rigidbody_world_remove_exec (bContext *C, wmOperator *op) |
| void | RIGIDBODY_OT_world_remove (wmOperatorType *ot) |
| static wmOperatorStatus | rigidbody_world_export_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | 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.
| void RIGIDBODY_OT_world_add | ( | wmOperatorType * | ot | ) |
Definition at line 73 of file rigidbody_world.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, rigidbody_world_add_exec(), and rigidbody_world_add_poll().
Referenced by operatortypes_particle().
| void RIGIDBODY_OT_world_export | ( | wmOperatorType * | ot | ) |
Definition at line 176 of file rigidbody_world.cc.
References FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, OPTYPE_REGISTER, OPTYPE_UNDO, ot, rigidbody_world_active_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 112 of file rigidbody_world.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, rigidbody_world_active_poll(), and rigidbody_world_remove_exec().
Referenced by operatortypes_particle().
|
static |
Definition at line 40 of file rigidbody_world.cc.
References C, CTX_data_scene(), and Scene::rigidbody_world.
Referenced by RIGIDBODY_OT_world_export(), and RIGIDBODY_OT_world_remove().
|
static |
Definition at line 56 of file rigidbody_world.cc.
References BKE_rigidbody_create_world(), C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update_ex(), DEG_relations_tag_update(), Scene::id, ID_RECALC_ANIMATION, OPERATOR_FINISHED, and Scene::rigidbody_world.
Referenced by RIGIDBODY_OT_world_add().
|
static |
Definition at line 45 of file rigidbody_world.cc.
References C, CTX_data_scene(), and Scene::rigidbody_world.
Referenced by RIGIDBODY_OT_world_add().
|
static |
Definition at line 132 of file rigidbody_world.cc.
References BKE_report(), BKE_rigidbody_world_physics(), C, CTX_data_scene(), ELEM, FILE_MAX, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RB_dworld_export(), wmOperator::reports, Scene::rigidbody_world, RNA_string_get(), and RPT_ERROR.
Referenced by RIGIDBODY_OT_world_export(), and rigidbody_world_export_invoke().
|
static |
Definition at line 157 of file rigidbody_world.cc.
References C, OPERATOR_RUNNING_MODAL, wmOperator::ptr, rigidbody_world_export_exec(), RNA_boolean_set(), RNA_string_set(), RNA_struct_property_is_set(), U, USER_RELPATHS, and WM_event_add_fileselect().
Referenced by RIGIDBODY_OT_world_export().
|
static |
Definition at line 90 of file rigidbody_world.cc.
References BKE_report(), BKE_rigidbody_free_world(), C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update_ex(), DEG_relations_tag_update(), ELEM, Scene::id, ID_RECALC_ANIMATION, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, Scene::rigidbody_world, and RPT_ERROR.
Referenced by RIGIDBODY_OT_world_remove().