2.5 UI:
*Brush option "size" had different naming in 3D View / Image Editor. Ported back name "Radius" to RNA (Brush and ParticleBrush) Discovered by Bart Crouch. Thanks!
This commit is contained in:
@@ -430,7 +430,7 @@ static void rna_def_brush(BlenderRNA *brna)
|
||||
RNA_def_property_int_funcs(prop, "rna_Brush_get_size", "rna_Brush_set_size", NULL);
|
||||
RNA_def_property_range(prop, 1, MAX_BRUSH_PIXEL_RADIUS*10);
|
||||
RNA_def_property_ui_range(prop, 1, MAX_BRUSH_PIXEL_RADIUS, 1, 0);
|
||||
RNA_def_property_ui_text(prop, "Size", "Radius of the brush in pixels");
|
||||
RNA_def_property_ui_text(prop, "Radius", "Radius of the brush in pixels");
|
||||
RNA_def_property_update(prop, 0, "rna_Brush_update");
|
||||
|
||||
prop= RNA_def_property(srna, "unprojected_radius", PROP_FLOAT, PROP_DISTANCE);
|
||||
|
||||
@@ -469,7 +469,7 @@ static void rna_def_particle_edit(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "size", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 1, SHRT_MAX);
|
||||
RNA_def_property_ui_range(prop, 1, 100, 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Size", "Brush size");
|
||||
RNA_def_property_ui_text(prop, "Radius", "Radius of the brush in pixels");
|
||||
|
||||
prop= RNA_def_property(srna, "strength", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 0.001, 1.0);
|
||||
|
||||
Reference in New Issue
Block a user