Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_cloth.c
| Show First 20 Lines • Show All 818 Lines • ▼ Show 20 Lines | static void rna_def_cloth_collision_settings(BlenderRNA *brna) | ||||
| RNA_def_struct_sdna(srna, "ClothCollSettings"); | RNA_def_struct_sdna(srna, "ClothCollSettings"); | ||||
| RNA_def_struct_path_func(srna, "rna_ClothCollisionSettings_path"); | RNA_def_struct_path_func(srna, "rna_ClothCollisionSettings_path"); | ||||
| /* general collision */ | /* general collision */ | ||||
| prop = RNA_def_property(srna, "use_collision", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_collision", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", CLOTH_COLLSETTINGS_FLAG_ENABLED); | RNA_def_property_boolean_sdna(prop, NULL, "flags", CLOTH_COLLSETTINGS_FLAG_ENABLED); | ||||
| RNA_def_property_ui_text(prop, "Enable Collision", "Enable collisions with other objects"); | RNA_def_property_ui_text(prop, "Enable Collision", "Enable collisions with other objects"); | ||||
| RNA_def_property_update(prop, 0, "rna_cloth_update"); | RNA_def_property_update(prop, 0, "rna_cloth_dependency_update"); | ||||
| prop = RNA_def_property(srna, "distance_min", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "distance_min", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "epsilon"); | RNA_def_property_float_sdna(prop, NULL, "epsilon"); | ||||
| RNA_def_property_range(prop, 0.001f, 1.0f); | RNA_def_property_range(prop, 0.001f, 1.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Minimum Distance", | "Minimum Distance", | ||||
| "Minimum distance between collision objects before collision response takes effect"); | "Minimum distance between collision objects before collision response takes effect"); | ||||
| ▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines | |||||