Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 2,373 Lines • ▼ Show 20 Lines | static void rna_def_brush(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "cloth_damping", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "cloth_damping", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "cloth_damping"); | RNA_def_property_float_sdna(prop, NULL, "cloth_damping"); | ||||
| RNA_def_property_range(prop, 0.01f, 1.0f); | RNA_def_property_range(prop, 0.01f, 1.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Cloth Damping", "How much the applied forces are propagated through the cloth"); | prop, "Cloth Damping", "How much the applied forces are propagated through the cloth"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "cloth_tension", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "cloth_tension"); | |||||
| RNA_def_property_range(prop, 0.00f, 10.0f); | |||||
| RNA_def_property_ui_text(prop, "Tension", "Tensions"); | |||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | |||||
| prop = RNA_def_property(srna, "cloth_shearing", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "cloth_shearing"); | |||||
| RNA_def_property_range(prop, 0.00f, 10.0f); | |||||
| RNA_def_property_ui_text(prop, "Shearing", "Shearing"); | |||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | |||||
| prop = RNA_def_property(srna, "cloth_bending", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "cloth_bending"); | |||||
| RNA_def_property_range(prop, 0.00f, 10.0f); | |||||
| RNA_def_property_ui_text(prop, "Bending", "Bending"); | |||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | |||||
| prop = RNA_def_property(srna, "cloth_sim_limit", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "cloth_sim_limit", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "cloth_sim_limit"); | RNA_def_property_float_sdna(prop, NULL, "cloth_sim_limit"); | ||||
| RNA_def_property_range(prop, 0.1f, 10.0f); | RNA_def_property_range(prop, 0.1f, 10.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Simulation Limit", | "Simulation Limit", | ||||
| "Factor added relative to the size of the radius to limit the cloth simulation effects"); | "Factor added relative to the size of the radius to limit the cloth simulation effects"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| ▲ Show 20 Lines • Show All 667 Lines • Show Last 20 Lines | |||||