Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 1,836 Lines • ▼ Show 20 Lines | static void rna_def_brush(BlenderRNA *brna) | ||||
| RNA_def_property_float_default(prop, 0); | RNA_def_property_float_default(prop, 0); | ||||
| 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, "Normal Weight", "How much grab will pull vertexes out of surface during a grab"); | prop, "Normal Weight", "How much grab will pull vertexes out of surface during a grab"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "elastic_deform_compressibility", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "elastic_deform_compressibility", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "elastic_deform_compressibility"); | RNA_def_property_float_sdna(prop, NULL, "elastic_deform_compressibility"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 0.9f); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.01f, 3); | RNA_def_property_ui_range(prop, 0.0f, 0.9f, 0.01f, 3); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Compressibility", "Material compressibility when simulating the elasticity"); | prop, "Compressibility", "Material compressibility when simulating the elasticity"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "rake_factor", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "rake_factor", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "rake_factor"); | RNA_def_property_float_sdna(prop, NULL, "rake_factor"); | ||||
| RNA_def_property_float_default(prop, 0); | RNA_def_property_float_default(prop, 0); | ||||
| RNA_def_property_range(prop, 0.0f, 10.0f); | RNA_def_property_range(prop, 0.0f, 10.0f); | ||||
| ▲ Show 20 Lines • Show All 591 Lines • Show Last 20 Lines | |||||