Fix: Prevent erroneous values for detail_size and detail_percent #117976

Merged
Sergey Sharybin merged 1 commits from Sean-Kim/blender:detail-size-min into blender-v4.1-release 2024-02-08 17:03:05 +01:00
1 changed files with 2 additions and 0 deletions

View File

@ -827,6 +827,7 @@ static void rna_def_sculpt(BlenderRNA *brna)
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_update");
prop = RNA_def_property(srna, "detail_size", PROP_FLOAT, PROP_PIXEL);
RNA_def_property_range(prop, 0.5, 40.0);
RNA_def_property_ui_range(prop, 0.5, 40.0, 0.1, 2);
RNA_def_property_ui_scale_type(prop, PROP_SCALE_CUBIC);
RNA_def_property_ui_text(
@ -834,6 +835,7 @@ static void rna_def_sculpt(BlenderRNA *brna)
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, nullptr);
prop = RNA_def_property(srna, "detail_percent", PROP_FLOAT, PROP_PERCENTAGE);
RNA_def_property_range(prop, 0.5, 100.0);
RNA_def_property_ui_range(prop, 0.5, 100.0, 10, 2);
RNA_def_property_ui_text(
prop,