Blender V4.3
rigidbody_object.cc File Reference

Rigid Body object editing operators. More...

#include <cstdlib>
#include <cstring>
#include "DNA_object_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_report.hh"
#include "BKE_rigidbody.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "DEG_depsgraph_query.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_object.hh"
#include "ED_physics.hh"
#include "ED_screen.hh"
#include "physics_intern.hh"

Go to the source code of this file.

Classes

struct  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 *)
 
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 *, PointerRNA *, PropertyRNA *, bool *r_free)
 
static int rigidbody_objects_calc_mass_exec (bContext *C, wmOperator *op)
 
static bool mass_calculate_poll_property (const bContext *, 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.cc.

Function Documentation

◆ ED_operator_rigidbody_active_poll()

◆ ED_operator_rigidbody_add_poll()

◆ ED_rigidbody_object_add()

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

◆ 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 * ,
wmOperator * op,
const PropertyRNA * prop )
static

◆ operator_rigidbody_editable_poll()

static bool operator_rigidbody_editable_poll ( Scene * scene)
static

◆ rigidbody_materials_itemf()

◆ rigidbody_object_add_exec()

◆ rigidbody_object_remove_exec()

◆ rigidbody_objects_add_exec()

◆ rigidbody_objects_calc_mass_exec()

◆ rigidbody_objects_remove_exec()

◆ rigidbody_objects_shape_change_exec()

◆ RIGIDBODY_OT_mass_calculate()

◆ RIGIDBODY_OT_object_add()

◆ RIGIDBODY_OT_object_remove()

◆ RIGIDBODY_OT_objects_add()

◆ RIGIDBODY_OT_objects_remove()

◆ RIGIDBODY_OT_shape_change()

Variable Documentation

◆ NUM_RB_MATERIAL_PRESETS

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

Definition at line 407 of file rigidbody_object.cc.

Referenced by rigidbody_materials_itemf(), and rigidbody_objects_calc_mass_exec().

◆ RB_MATERIAL_DENSITY_TABLE

rbMaterialDensityItem RB_MATERIAL_DENSITY_TABLE[]
static