Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_rigidbody.c
| Show First 20 Lines • Show All 734 Lines • ▼ Show 20 Lines | static void rna_def_rigidbody_world(BlenderRNA *brna) | ||||
| srna = RNA_def_struct(brna, "RigidBodyWorld", NULL); | srna = RNA_def_struct(brna, "RigidBodyWorld", NULL); | ||||
| RNA_def_struct_sdna(srna, "RigidBodyWorld"); | RNA_def_struct_sdna(srna, "RigidBodyWorld"); | ||||
| RNA_def_struct_ui_text(srna, "Rigid Body World", "Self-contained rigid body simulation environment and settings"); | RNA_def_struct_ui_text(srna, "Rigid Body World", "Self-contained rigid body simulation environment and settings"); | ||||
| RNA_def_struct_path_func(srna, "rna_RigidBodyWorld_path"); | RNA_def_struct_path_func(srna, "rna_RigidBodyWorld_path"); | ||||
| /* groups */ | /* groups */ | ||||
| prop = RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Group"); | RNA_def_property_struct_type(prop, "Collection"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | ||||
| RNA_def_property_ui_text(prop, "Group", "Group containing objects participating in this simulation"); | RNA_def_property_ui_text(prop, "Collection", "Collection containing objects participating in this simulation"); | ||||
| RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_reset"); | RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_reset"); | ||||
| prop = RNA_def_property(srna, "constraints", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "constraints", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Group"); | RNA_def_property_struct_type(prop, "Collection"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | ||||
| RNA_def_property_ui_text(prop, "Constraints", "Group containing rigid body constraint objects"); | RNA_def_property_ui_text(prop, "Constraints", "Collection containing rigid body constraint objects"); | ||||
| RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_reset"); | RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_reset"); | ||||
| /* booleans */ | /* booleans */ | ||||
| prop = RNA_def_property(srna, "enabled", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "enabled", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", RBW_FLAG_MUTED); | RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", RBW_FLAG_MUTED); | ||||
| RNA_def_property_ui_text(prop, "Enabled", "Simulation will be evaluated"); | RNA_def_property_ui_text(prop, "Enabled", "Simulation will be evaluated"); | ||||
| RNA_def_property_update(prop, NC_SCENE, NULL); | RNA_def_property_update(prop, NC_SCENE, NULL); | ||||
| ▲ Show 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text(prop, "Collision Margin", | ||||
| "Threshold of distance near surface where collisions are still considered " | "Threshold of distance near surface where collisions are still considered " | ||||
| "(best results when non-zero)"); | "(best results when non-zero)"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_POINTCACHE, "rna_RigidBodyOb_shape_reset"); | RNA_def_property_update(prop, NC_OBJECT | ND_POINTCACHE, "rna_RigidBodyOb_shape_reset"); | ||||
| prop = RNA_def_property(srna, "collision_groups", PROP_BOOLEAN, PROP_LAYER_MEMBER); | prop = RNA_def_property(srna, "collision_groups", PROP_BOOLEAN, PROP_LAYER_MEMBER); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "col_groups", 1); | RNA_def_property_boolean_sdna(prop, NULL, "col_groups", 1); | ||||
| RNA_def_property_array(prop, 20); | RNA_def_property_array(prop, 20); | ||||
| RNA_def_property_boolean_funcs(prop, NULL, "rna_RigidBodyOb_collision_groups_set"); | RNA_def_property_boolean_funcs(prop, NULL, "rna_RigidBodyOb_collision_groups_set"); | ||||
| RNA_def_property_ui_text(prop, "Collision Groups", "Collision Groups Rigid Body belongs to"); | RNA_def_property_ui_text(prop, "Collision Collections", "Collision collections rigid body belongs to"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_POINTCACHE, "rna_RigidBodyOb_reset"); | RNA_def_property_update(prop, NC_OBJECT | ND_POINTCACHE, "rna_RigidBodyOb_reset"); | ||||
| RNA_def_property_flag(prop, PROP_LIB_EXCEPTION); | RNA_def_property_flag(prop, PROP_LIB_EXCEPTION); | ||||
| } | } | ||||
| static void rna_def_rigidbody_constraint(BlenderRNA *brna) | static void rna_def_rigidbody_constraint(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 378 Lines • Show Last 20 Lines | |||||