Fix #119197: missing tool settings in sidebar for curves density brush
The settings used to be shown for the add brush, but not for the density brush. Now they are shown for both. Pull Request: https://projects.blender.org/blender/blender/pulls/120090
This commit is contained in:
parent
8512a608a4
commit
20e07f0102
@ -816,6 +816,27 @@ def brush_settings(layout, context, brush, popover=False):
|
||||
col.active = not brush.curves_sculpt_settings.use_point_count_interpolate
|
||||
col.prop(brush.curves_sculpt_settings, "points_per_curve", text="Points")
|
||||
|
||||
if brush.curves_sculpt_tool == 'DENSITY' :
|
||||
col = layout.column()
|
||||
col.prop(brush.curves_sculpt_settings, "density_add_attempts", text="Count Max")
|
||||
col = layout.column(heading="Interpolate", align=True)
|
||||
col.prop(brush.curves_sculpt_settings, "use_length_interpolate", text="Length")
|
||||
col.prop(brush.curves_sculpt_settings, "use_radius_interpolate", text="Radius")
|
||||
col.prop(brush.curves_sculpt_settings, "use_shape_interpolate", text="Shape")
|
||||
col.prop(brush.curves_sculpt_settings, "use_point_count_interpolate", text="Point Count")
|
||||
|
||||
col = layout.column()
|
||||
col.active = not brush.curves_sculpt_settings.use_length_interpolate
|
||||
col.prop(brush.curves_sculpt_settings, "curve_length", text="Length")
|
||||
|
||||
col = layout.column()
|
||||
col.active = not brush.curves_sculpt_settings.use_radius_interpolate
|
||||
col.prop(brush.curves_sculpt_settings, "curve_radius", text="Radius")
|
||||
|
||||
col = layout.column()
|
||||
col.active = not brush.curves_sculpt_settings.use_point_count_interpolate
|
||||
col.prop(brush.curves_sculpt_settings, "points_per_curve", text="Points")
|
||||
|
||||
elif brush.curves_sculpt_tool == 'GROW_SHRINK':
|
||||
layout.prop(brush.curves_sculpt_settings, "use_uniform_scale")
|
||||
layout.prop(brush.curves_sculpt_settings, "minimum_length")
|
||||
|
Loading…
Reference in New Issue
Block a user