Commit: c95b31df83dd483ab703a0305f4a2876773a5df4
Author: Antonio Vazquez
Date: Fri Dec 25 16:05:19 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rBc95b31df83dd483ab703a0305f4a2876773a5df4
GPencil: Don't normalize strokes by default exporting PDF
If the stroke is normalized by default there are gaps.
===================================================================
M source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
===================================================================
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
b/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
index 68ca511d346..36b5f91a4cc 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc
@@ -156,6 +156,8 @@ void GpencilExporterPDF::export_gpencil_layers(void)
create_object_list();
}
+ const bool is_normalized = ((params_.flag & GP_EXPORT_NORM_THICKNESS) != 0);
+
for (ObjectZ &obz : ob_list_) {
Object *ob = obz.ob;
@@ -192,9 +194,6 @@ void GpencilExporterPDF::export_gpencil_layers(void)
export_stroke_to_point();
}
else {
- bool is_normalized = ((params_.flag & GP_EXPORT_NORM_THICKNESS) !=
0) ||
- is_stroke_thickness_constant(gps);
-
/* Fill. */
if ((material_is_fill()) && (params_.flag & GP_EXPORT_FILL)) {
/* Fill is exported as polygon for fill and stroke in a different
shape. */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs