Blender  V3.3
Classes | Typedefs | Functions | Variables
rigidbody_object.c File Reference

Rigid Body object editing operators. More...

#include <stdlib.h>
#include <string.h>
#include "DNA_collection_types.h"
#include "DNA_object_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "BLI_blenlib.h"
#include "BLT_translation.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 "DEG_depsgraph_query.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_object.h"
#include "ED_physics.h"
#include "ED_screen.h"
#include "physics_intern.h"

Go to the source code of this file.

Classes

struct  rbMaterialDensityItem
 

Typedefs

typedef struct rbMaterialDensityItem rbMaterialDensityItem
 

Functions

static bool operator_rigidbody_editable_poll (Scene *scene)
 
static bool ED_operator_rigidbody_active_poll (bContext *C)
 
static bool ED_operator_rigidbody_add_poll (bContext *C)
 
bool ED_rigidbody_object_add (Main *bmain, Scene *scene, Object *ob, int type, ReportList *reports)
 
void ED_rigidbody_object_remove (Main *bmain, Scene *scene, Object *ob)
 
static int rigidbody_object_add_exec (bContext *C, wmOperator *op)
 
void RIGIDBODY_OT_object_add (wmOperatorType *ot)
 
static int rigidbody_object_remove_exec (bContext *C, wmOperator *op)
 
void RIGIDBODY_OT_object_remove (wmOperatorType *ot)
 
static int rigidbody_objects_add_exec (bContext *C, wmOperator *op)
 
void RIGIDBODY_OT_objects_add (wmOperatorType *ot)
 
static int rigidbody_objects_remove_exec (bContext *C, wmOperator *UNUSED(op))
 
void RIGIDBODY_OT_objects_remove (wmOperatorType *ot)
 
static int rigidbody_objects_shape_change_exec (bContext *C, wmOperator *op)
 
void RIGIDBODY_OT_shape_change (wmOperatorType *ot)
 
static const EnumPropertyItemrigidbody_materials_itemf (bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
 
static int rigidbody_objects_calc_mass_exec (bContext *C, wmOperator *op)
 
static bool mass_calculate_poll_property (const bContext *UNUSED(C), wmOperator *op, const PropertyRNA *prop)
 
void RIGIDBODY_OT_mass_calculate (wmOperatorType *ot)
 

Variables

static rbMaterialDensityItem RB_MATERIAL_DENSITY_TABLE []
 
static const int NUM_RB_MATERIAL_PRESETS
 

Detailed Description

Rigid Body object editing operators.

Definition in file rigidbody_object.c.

Typedef Documentation

◆ rbMaterialDensityItem

Function Documentation

◆ ED_operator_rigidbody_active_poll()

static bool ED_operator_rigidbody_active_poll ( bContext C)
static

◆ ED_operator_rigidbody_add_poll()

static bool ED_operator_rigidbody_add_poll ( bContext C)
static

◆ ED_rigidbody_object_add()

bool ED_rigidbody_object_add ( Main bmain,
Scene scene,
Object ob,
int  type,
ReportList reports 
)

Definition at line 90 of file rigidbody_object.c.

References BKE_rigidbody_add_object(), scene, and type.

Referenced by rigidbody_object_add_exec(), and rigidbody_objects_add_exec().

◆ ED_rigidbody_object_remove()

void ED_rigidbody_object_remove ( Main bmain,
Scene scene,
Object ob 
)

◆ mass_calculate_poll_property()

static bool mass_calculate_poll_property ( const bContext UNUSEDC,
wmOperator op,
const PropertyRNA prop 
)
static

◆ operator_rigidbody_editable_poll()

static bool operator_rigidbody_editable_poll ( Scene scene)
static

◆ rigidbody_materials_itemf()

static const EnumPropertyItem* rigidbody_materials_itemf ( bContext UNUSEDC,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
bool r_free 
)
static

◆ rigidbody_object_add_exec()

static int rigidbody_object_add_exec ( bContext C,
wmOperator op 
)
static

◆ rigidbody_object_remove_exec()

static int rigidbody_object_remove_exec ( bContext C,
wmOperator op 
)
static

◆ rigidbody_objects_add_exec()

static int rigidbody_objects_add_exec ( bContext C,
wmOperator op 
)
static

◆ rigidbody_objects_calc_mass_exec()

static int rigidbody_objects_calc_mass_exec ( bContext C,
wmOperator op 
)
static

◆ rigidbody_objects_remove_exec()

static int rigidbody_objects_remove_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ rigidbody_objects_shape_change_exec()

static int rigidbody_objects_shape_change_exec ( bContext C,
wmOperator op 
)
static

◆ RIGIDBODY_OT_mass_calculate()

void RIGIDBODY_OT_mass_calculate ( wmOperatorType ot)

◆ RIGIDBODY_OT_object_add()

void RIGIDBODY_OT_object_add ( wmOperatorType ot)

◆ RIGIDBODY_OT_object_remove()

void RIGIDBODY_OT_object_remove ( wmOperatorType ot)

◆ RIGIDBODY_OT_objects_add()

void RIGIDBODY_OT_objects_add ( wmOperatorType ot)

◆ RIGIDBODY_OT_objects_remove()

void RIGIDBODY_OT_objects_remove ( wmOperatorType ot)

◆ RIGIDBODY_OT_shape_change()

void RIGIDBODY_OT_shape_change ( wmOperatorType ot)

Variable Documentation

◆ NUM_RB_MATERIAL_PRESETS

const int NUM_RB_MATERIAL_PRESETS
static
Initial value:
static rbMaterialDensityItem RB_MATERIAL_DENSITY_TABLE[]

Definition at line 416 of file rigidbody_object.c.

Referenced by rigidbody_materials_itemf(), and rigidbody_objects_calc_mass_exec().

◆ RB_MATERIAL_DENSITY_TABLE

rbMaterialDensityItem RB_MATERIAL_DENSITY_TABLE[]
static