Fix T85850: GPencil Interpolate tool panel wrongly aligned

The layout was wrong.
This commit is contained in:
Antonio Vazquez 2021-02-22 16:12:40 +01:00
parent 046fe55e63
commit fcac3d04f5
Notes: blender-bot 2023-02-14 02:22:13 +01:00
Referenced by issue #85850, Grease Pencil in Draw mode, new interpolate tool - Active tool settings UI layout problem
1 changed files with 9 additions and 11 deletions

View File

@ -2039,11 +2039,10 @@ class _defs_gpencil_paint:
def interpolate():
def draw_settings(context, layout, tool):
props = tool.operator_properties("gpencil.interpolate")
row = layout.row()
row.prop(props, "layers")
row.prop(props, "flip")
row.prop(props, "smooth_factor")
row.prop(props, "smooth_steps")
layout.prop(props, "layers")
layout.prop(props, "flip")
layout.prop(props, "smooth_factor")
layout.prop(props, "smooth_steps")
return dict(
idname="builtin.interpolate",
@ -2222,12 +2221,11 @@ class _defs_gpencil_edit:
def interpolate():
def draw_settings(context, layout, tool):
props = tool.operator_properties("gpencil.interpolate")
row = layout.row()
row.prop(props, "layers")
row.prop(props, "interpolate_selected_only")
row.prop(props, "flip")
row.prop(props, "smooth_factor")
row.prop(props, "smooth_steps")
layout.prop(props, "layers")
layout.prop(props, "interpolate_selected_only")
layout.prop(props, "flip")
layout.prop(props, "smooth_factor")
layout.prop(props, "smooth_steps")
return dict(
idname="builtin.interpolate",