Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_rigidbody.c
| Show First 20 Lines • Show All 859 Lines • ▼ Show 20 Lines | static void rna_def_rigidbody_world(BlenderRNA *brna) | ||||
| RNA_def_struct_ui_text( | RNA_def_struct_ui_text( | ||||
| srna, "Rigid Body World", "Self-contained rigid body simulation environment and settings"); | 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, "collection", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "collection", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Collection"); | RNA_def_property_struct_type(prop, "Collection"); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "group"); | RNA_def_property_pointer_sdna(prop, NULL, "group"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK | PROP_ID_REFCOUNT); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Collection", "Collection containing objects participating in this simulation"); | prop, "Collection", "Collection containing objects participating in this simulation"); | ||||
| RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_objects_collection_update"); | RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_objects_collection_update"); | ||||
| 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, "Collection"); | 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 | PROP_ID_REFCOUNT); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Constraints", "Collection containing rigid body constraint objects"); | prop, "Constraints", "Collection containing rigid body constraint objects"); | ||||
| RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_constraints_collection_update"); | RNA_def_property_update(prop, NC_SCENE, "rna_RigidBodyWorld_constraints_collection_update"); | ||||
| /* 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); | ||||
| ▲ Show 20 Lines • Show All 704 Lines • Show Last 20 Lines | |||||