Commit: f9b3fae4aedaf1c38ee68b3028225244ee795751
Author: Antonio Vazquez
Date:   Sun Aug 16 19:55:16 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rBf9b3fae4aedaf1c38ee68b3028225244ee795751

GPencil: Export SVG fill as polygon

As the Fill hasn't stroke, it's better export as polygon. The stroke is 
exported in a different SVG command.

===================================================================

M       source/blender/io/gpencil/intern/gpencil_io_export_svg.cc

===================================================================

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 2f256d14999..fb6311e0fca 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
@@ -260,12 +260,9 @@ void GpencilExporterSVG::export_gpencil_layers(void)
 
           /* Fill. */
           if ((material_is_fill()) && (params_.flag & GP_EXPORT_FILL)) {
-            if (is_normalized) {
-              export_stroke_to_polyline(gpl_node, true);
-            }
-            else {
-              export_stroke_to_path(gpl_node, true);
-            }
+            /* Fill is always exported as polygon because the stroke of the 
fill is done
+             * in a different SVG command. */
+            export_stroke_to_polyline(gpl_node, true);
           }
 
           /* Stroke. */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to