76 ot->idname =
"RIGIDBODY_OT_world_add";
77 ot->name =
"Add Rigid Body World";
78 ot->description =
"Add Rigid Body simulation world to the current scene";
97 if (
ELEM(
nullptr, scene, rbw)) {
115 ot->idname =
"RIGIDBODY_OT_world_remove";
116 ot->name =
"Remove Rigid Body World";
117 ot->description =
"Remove Rigid Body simulation world from the current scene";
139 if (
ELEM(
nullptr, scene, rbw)) {
144 if (physics_world ==
nullptr) {
146 op->
reports,
RPT_ERROR,
"Rigid Body World has no associated physics data to export");
179 ot->idname =
"RIGIDBODY_OT_world_export";
180 ot->name =
"Export Rigid Body World";
182 "Export Rigid Body world to the simulator's own file-format "
183 "(i.e. '.bullet' for Bullet Physics)";
Scene * CTX_data_scene(const bContext *C)
Main * CTX_data_main(const bContext *C)
void BKE_report(ReportList *reports, eReportType type, const char *message)
API for Blender-side Rigid Body stuff.
struct rbDynamicsWorld * BKE_rigidbody_world_physics(struct RigidBodyWorld *rbw)
void BKE_rigidbody_free_world(struct Scene *scene)
struct RigidBodyWorld * BKE_rigidbody_create_world(struct Scene *scene)
void DEG_relations_tag_update(Main *bmain)
Types and defines for representing Rigid Body entities.
Rigid Body API for interfacing with external Physics Engines.
DEG_id_tag_update_ex(cb_data->bmain, cb_data->owner_id, ID_RECALC_TAG_FOR_UNDO|ID_RECALC_SYNC_TO_EVAL)
void RB_dworld_export(rbDynamicsWorld *world, const char *filename)
void RIGIDBODY_OT_world_remove(wmOperatorType *ot)
static wmOperatorStatus rigidbody_world_export_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus rigidbody_world_add_exec(bContext *C, wmOperator *)
static bool rigidbody_world_active_poll(bContext *C)
static wmOperatorStatus rigidbody_world_remove_exec(bContext *C, wmOperator *op)
void RIGIDBODY_OT_world_export(wmOperatorType *ot)
void RIGIDBODY_OT_world_add(wmOperatorType *ot)
static bool rigidbody_world_add_poll(bContext *C)
static wmOperatorStatus rigidbody_world_export_exec(bContext *C, wmOperator *op)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
struct RigidBodyWorld * rigidbody_world
struct ReportList * reports
void WM_event_add_fileselect(bContext *C, wmOperator *op)
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)