Blender
V3.3
|
Rigid Body world editing operators. More...
#include <stdlib.h>
#include <string.h>
#include "DNA_object_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_rigidbody.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "physics_intern.h"
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 *UNUSED(op)) |
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 *UNUSED(event)) |
void | RIGIDBODY_OT_world_export (wmOperatorType *ot) |
Rigid Body world editing operators.
Definition in file rigidbody_world.c.
Definition at line 41 of file rigidbody_world.c.
References C, CTX_data_scene(), Scene::rigidbody_world, and scene.
Referenced by RIGIDBODY_OT_world_export(), and RIGIDBODY_OT_world_remove().
Definition at line 46 of file rigidbody_world.c.
References C, CTX_data_scene(), NULL, Scene::rigidbody_world, and scene.
Referenced by RIGIDBODY_OT_world_add().
void RIGIDBODY_OT_world_add | ( | wmOperatorType * | ot | ) |
Definition at line 74 of file rigidbody_world.c.
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.c.
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.c.
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.c.
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, Scene::rigidbody_world, and scene.
Referenced by RIGIDBODY_OT_world_add().
|
static |
Definition at line 133 of file rigidbody_world.c.
References BKE_report(), C, CTX_data_scene(), ELEM, FILE_MAX, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RigidBodyWorld_Shared::physics_world, wmOperator::ptr, RB_dworld_export(), wmOperator::reports, Scene::rigidbody_world, RNA_string_get(), RPT_ERROR, scene, and RigidBodyWorld::shared.
Referenced by RIGIDBODY_OT_world_export(), and rigidbody_world_export_invoke().
|
static |
Definition at line 157 of file rigidbody_world.c.
References C, 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.c.
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, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, Scene::rigidbody_world, RPT_ERROR, and scene.
Referenced by RIGIDBODY_OT_world_remove().