Make dyntopo detail size maximum smaller (more than 40 pixels should not

be needed according to mapping in code) and change the property to
float.
This commit is contained in:
Antony Riakiotakis 2014-03-31 19:30:51 +03:00
parent a5be03b270
commit fa3d9f4fbd
3 changed files with 4 additions and 4 deletions

View File

@ -1259,7 +1259,7 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel):
row.operator("sculpt.sample_detail_size", text="", icon='EYEDROPPER')
row.prop(sculpt, "constant_detail")
else:
sub.prop(sculpt, "detail_size")
sub.prop(sculpt, "detail_size", slider=True)
sub.prop(sculpt, "detail_refine_method", text="")
sub.prop(sculpt, "detail_type_method", text="")
col.separator()

View File

@ -848,7 +848,7 @@ typedef struct Sculpt {
int radial_symm[3];
/* Maximum edge length for dynamic topology sculpting (in pixels) */
int detail_size;
float detail_size;
/* Direction used for SCULPT_OT_symmetrize operator */
int symmetrize_direction;

View File

@ -414,8 +414,8 @@ static void rna_def_sculpt(BlenderRNA *brna)
"Show diffuse color of object and overlay sculpt mask on top of it");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_ShowDiffuseColor_update");
prop = RNA_def_property(srna, "detail_size", PROP_INT, PROP_PIXEL);
RNA_def_property_ui_range(prop, 2, 100, 0, -1);
prop = RNA_def_property(srna, "detail_size", PROP_FLOAT, PROP_PIXEL);
RNA_def_property_ui_range(prop, 0.5, 40.0, 10, 2);
RNA_def_property_ui_text(prop, "Detail Size", "Maximum edge length for dynamic topology sculpting (in pixels)");
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL);