Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_cloth.c
| Show First 20 Lines • Show All 527 Lines • ▼ Show 20 Lines | static void rna_def_cloth_sim_settings(BlenderRNA *brna) | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Target Density Strength", "Influence of target density on the simulation"); | prop, "Target Density Strength", "Influence of target density on the simulation"); | ||||
| RNA_def_property_update(prop, 0, "rna_cloth_update"); | RNA_def_property_update(prop, 0, "rna_cloth_update"); | ||||
| /* mass */ | /* mass */ | ||||
| prop = RNA_def_property(srna, "mass", PROP_FLOAT, PROP_UNIT_MASS); | prop = RNA_def_property(srna, "mass", PROP_FLOAT, PROP_UNIT_MASS); | ||||
| RNA_def_property_range(prop, 0.0f, 10.0f); | RNA_def_property_range(prop, 0.0f, FLT_MAX); | ||||
| RNA_def_property_ui_text(prop, "Mass", "Mass of cloth material"); | RNA_def_property_ui_text(prop, "Vertex Mass", "The mass of each vertex on the cloth material"); | ||||
| RNA_def_property_update(prop, 0, "rna_cloth_update"); | RNA_def_property_update(prop, 0, "rna_cloth_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group_mass", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group_mass", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_funcs(prop, | RNA_def_property_string_funcs(prop, | ||||
| "rna_ClothSettings_mass_vgroup_get", | "rna_ClothSettings_mass_vgroup_get", | ||||
| "rna_ClothSettings_mass_vgroup_length", | "rna_ClothSettings_mass_vgroup_length", | ||||
| "rna_ClothSettings_mass_vgroup_set"); | "rna_ClothSettings_mass_vgroup_set"); | ||||
| RNA_def_property_ui_text(prop, "Mass Vertex Group", "Vertex Group for pinning of vertices"); | RNA_def_property_ui_text(prop, "Mass Vertex Group", "Vertex Group for pinning of vertices"); | ||||
| ▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines | |||||