UI: particle deflector options in topbar

See: T57228
This commit is contained in:
Campbell Barton 2018-10-17 18:52:11 +11:00
parent ec7c3b5b4f
commit 53d152258e
1 changed files with 9 additions and 0 deletions

View File

@ -303,6 +303,15 @@ class _draw_left_context_mode:
elif tool == 'PUFF':
layout.row().prop(brush, "puff_mode", expand=True)
layout.prop(brush, "use_puff_volume")
elif tool == 'COMB':
# Note: actually in 'Options' panel,
# disabled when used in popover.
row = layout.row()
row.active = settings.is_editable
row.prop(settings, "use_emitter_deflect", text="Deflect Emitter")
sub = row.row(align=True)
sub.active = settings.use_emitter_deflect
sub.prop(settings, "emitter_distance", text="Distance")
class IMAGE_EDITOR:
def VIEW(context, layout, tool):