forked from bartvdbraak/blender
Paint: Descrollification commit for brush texture angle property.
Original patch by Sebastian Koenig with edits.
This commit is contained in:
parent
2be654b2ff
commit
09e5373c06
@ -90,23 +90,24 @@ def brush_texture_settings(layout, brush, sculpt):
|
|||||||
layout.operator("brush.stencil_reset_transform")
|
layout.operator("brush.stencil_reset_transform")
|
||||||
|
|
||||||
# angle and texture_angle_source
|
# angle and texture_angle_source
|
||||||
|
if brush.brush_capabilities.has_texture_angle:
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.active = brush.brush_capabilities.has_texture_angle_source
|
|
||||||
col.label(text="Angle:")
|
col.label(text="Angle:")
|
||||||
|
row = col.row(align=True)
|
||||||
|
if brush.brush_capabilities.has_texture_angle_source:
|
||||||
if brush.brush_capabilities.has_random_texture_angle:
|
if brush.brush_capabilities.has_random_texture_angle:
|
||||||
if sculpt:
|
if sculpt:
|
||||||
if brush.sculpt_capabilities.has_random_texture_angle:
|
if brush.sculpt_capabilities.has_random_texture_angle:
|
||||||
col.prop(brush, "texture_angle_source_random", text="")
|
row.prop(brush, "texture_angle_source_random", text="")
|
||||||
else:
|
else:
|
||||||
col.prop(brush, "texture_angle_source_no_random", text="")
|
row.prop(brush, "texture_angle_source_no_random", text="")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
col.prop(brush, "texture_angle_source_random", text="")
|
row.prop(brush, "texture_angle_source_random", text="")
|
||||||
else:
|
else:
|
||||||
col.prop(brush, "texture_angle_source_no_random", text="")
|
row.prop(brush, "texture_angle_source_no_random", text="")
|
||||||
col = layout.column()
|
|
||||||
col.active = brush.brush_capabilities.has_texture_angle
|
row.prop(tex_slot, "angle", text="")
|
||||||
col.prop(tex_slot, "angle", text="")
|
|
||||||
|
|
||||||
# scale and offset
|
# scale and offset
|
||||||
split = layout.split()
|
split = layout.split()
|
||||||
|
Loading…
Reference in New Issue
Block a user