diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-08-30 18:03:13 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-08-30 18:12:03 +0300 |
commit | 38cf0d7d13a306b0c0c96f6f95ed8c2dcef4df12 (patch) | |
tree | a3d2bb8cafa1c7332688060ff138cb2bf3edc1bb /source/blender/io/gpencil/intern/gpencil_io_export_svg.cc | |
parent | 9cfa74087e32de6c800dbc5799f73b8a4b5afc24 (diff) |
GPencil: Improve Thickness handling for Outline operator
Actually, when you increase the thickness of the stroke in the outline conversion, the shape of the stroke changes and becomes thicker.
This commit includes a new algorithm to correct this problem. A new `Keep Shape` parameter allows you to disable it because, for artist reasons, it may be good to keep the old algorithm and change the shape.
Diffstat (limited to 'source/blender/io/gpencil/intern/gpencil_io_export_svg.cc')
-rw-r--r-- | source/blender/io/gpencil/intern/gpencil_io_export_svg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc index 2601ad05ea7..e0eded35ce9 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc +++ b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc @@ -217,7 +217,7 @@ void GpencilExporterSVG::export_gpencil_layers() } else { bGPDstroke *gps_perimeter = BKE_gpencil_stroke_perimeter_from_view( - rv3d_, gpd_, gpl, gps_duplicate, 3, diff_mat_.values); + rv3d_, gpd_, gpl, gps_duplicate, 3, diff_mat_.values, 0.0f); /* Sample stroke. */ if (params_.stroke_sample > 0.0f) { |