78 ot->
idname =
"RIGIDBODY_OT_world_add";
79 ot->
name =
"Add Rigid Body World";
80 ot->
description =
"Add Rigid Body simulation world to the current scene";
99 if (
ELEM(
nullptr, scene, rbw)) {
117 ot->
idname =
"RIGIDBODY_OT_world_remove";
118 ot->
name =
"Remove Rigid Body World";
119 ot->
description =
"Remove Rigid Body simulation world from the current scene";
141 if (
ELEM(
nullptr, scene, rbw)) {
146 if (physics_world ==
nullptr) {
148 op->
reports,
RPT_ERROR,
"Rigid Body World has no associated physics data to export");
181 ot->
idname =
"RIGIDBODY_OT_world_export";
182 ot->
name =
"Export Rigid Body World";
184 "Export Rigid Body world to the simulator's own file-format "
185 "(i.e. '.bullet' for Bullet Physics)";
API for Blender-side Rigid Body stuff.
Types and defines for representing Rigid Body entities.
Rigid Body API for interfacing with external Physics Engines.
void RIGIDBODY_OT_world_add(wmOperatorType *ot)
rbDynamicsWorld * BKE_rigidbody_world_physics(struct RigidBodyWorld *rbw)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
static wmOperatorStatus rigidbody_world_add_exec(bContext *C, wmOperator *)
void WM_operator_properties_filesel(wmOperatorType *ot, const int filter, const short type, const eFileSel_Action action, const eFileSel_Flag flag, const short display, const short sort)
static wmOperatorStatus rigidbody_world_remove_exec(bContext *C, wmOperator *op)
void DEG_id_tag_update_ex(Main *bmain, ID *id, unsigned int flags)
static wmOperatorStatus rigidbody_world_export_invoke(bContext *C, wmOperator *op, const wmEvent *)
void BKE_report(ReportList *reports, eReportType type, const char *message)
static wmOperatorStatus rigidbody_world_export_exec(bContext *C, wmOperator *op)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
static bool rigidbody_world_add_poll(bContext *C)
void RIGIDBODY_OT_world_remove(wmOperatorType *ot)
static bool rigidbody_world_active_poll(bContext *C)
struct RigidBodyWorld * BKE_rigidbody_create_world(struct Scene *scene)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
void BKE_rigidbody_free_world(struct Scene *scene)
Main * CTX_data_main(const bContext *C)
void DEG_relations_tag_update(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
void WM_event_add_fileselect(bContext *C, wmOperator *op)
void RIGIDBODY_OT_world_export(wmOperatorType *ot)
void RB_dworld_export(rbDynamicsWorld *world, const char *filename)
struct RigidBodyWorld * rigidbody_world
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports