diff options
author | Dalai Felinto <dalai@blender.org> | 2021-10-20 18:53:03 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2021-10-20 20:01:53 +0300 |
commit | 1de837437498f25997fa69df152529fe92a51f5c (patch) | |
tree | 4f1571e10b145f3a8e6213823391f2b7871c9d4f /release | |
parent | 9959c5315f462371c55f4164427af64f9d588d15 (diff) |
UI: Remove extra padding on Annotate tool settings
For some reason the Annotate tool has an extra padding when compared to
other tools. This makes the UI to flicker a bit (specially with D12939
applied).
Differential Revision: https://developer.blender.org/D12943
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 9b1b401bc5b..721c6bdb99c 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -185,23 +185,18 @@ class _defs_annotate: tool_settings = context.tool_settings if space_type == 'VIEW_3D': - layout.separator() - row = layout.row(align=True) row.prop(tool_settings, "annotation_stroke_placement_view3d", text="Placement") if tool_settings.gpencil_stroke_placement_view3d == 'CURSOR': row.prop(tool_settings.gpencil_sculpt, "lockaxis") elif tool_settings.gpencil_stroke_placement_view3d in {'SURFACE', 'STROKE'}: row.prop(tool_settings, "use_gpencil_stroke_endpoints") - elif space_type in {'IMAGE_EDITOR', 'NODE_EDITOR', 'SEQUENCE_EDITOR', 'CLIP_EDITOR'}: - layout.separator() + elif space_type in {'IMAGE_EDITOR', 'NODE_EDITOR', 'SEQUENCE_EDITOR', 'CLIP_EDITOR'}: row = layout.row(align=True) row.prop(tool_settings, "annotation_stroke_placement_view2d", text="Placement") if tool.idname == "builtin.annotate_line": - layout.separator() - props = tool.operator_properties("gpencil.annotate") if region_type == 'TOOL_HEADER': row = layout.row() @@ -223,7 +218,6 @@ class _defs_annotate: subrow.prop(props, "stabilizer_radius", text="Radius", slider=True) subrow.prop(props, "stabilizer_factor", text="Factor", slider=True) else: - layout.separator() layout.prop(props, "use_stabilizer", text="Stabilize Stroke") col = layout.column(align=False) col.active = props.use_stabilizer |