[Bf-blender-cvs] [af01f2ef55f] temp-gpencil-fill: GPencil: Change Auto Fit option and move to Topbar
Antonio Vazquez
noreply at git.blender.org
Mon Feb 1 16:38:41 CET 2021
Commit: af01f2ef55f478d851daa8f64e4941cc7bd505a6
Author: Antonio Vazquez
Date: Mon Feb 1 16:38:37 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rBaf01f2ef55f478d851daa8f64e4941cc7bd505a6
GPencil: Change Auto Fit option and move to Topbar
===================================================================
M release/scripts/startup/bl_ui/properties_paint_common.py
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 54c6de30ef8..30e50bde969 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -1223,6 +1223,8 @@ def brush_basic_gpencil_paint_settings(layout, context, brush, *, compact=False)
row.prop(gp_settings, "fill_leak", text="Leak Size")
row = layout.row(align=True)
row.prop(brush, "size", text="Thickness")
+ row = layout.row(align=True)
+ row.prop(gp_settings, "use_fill_autofit", text="", icon="SNAP_FACE_CENTER")
else: # brush.gpencil_tool == 'DRAW/TINT':
row = layout.row(align=True)
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index b3388f4179a..9f6433de991 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1394,7 +1394,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings'
bl_category = "Tool"
bl_options = {'DEFAULT_CLOSED'}
- bl_ui_units_x = 11
+ bl_ui_units_x = 13
@classmethod
def poll(cls, context):
@@ -1457,7 +1457,6 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
sub = sub.row(align=True)
sub.active = gp_settings.show_fill
sub.prop(gp_settings, "fill_threshold", text="")
- col.prop(gp_settings, "use_fill_autofit")
class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel):
More information about the Bf-blender-cvs
mailing list