Commit: a5aaadb791fb32daca661968edec17b2a0ade527
Author: Antonio Vazquez
Date: Fri Jul 31 23:30:16 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rBa5aaadb791fb32daca661968edec17b2a0ade527
GPencil: Do not export stroke for SVG paths
===================================================================
M source/blender/io/gpencil/intern/gpencil_io_svg.cc
===================================================================
diff --git a/source/blender/io/gpencil/intern/gpencil_io_svg.cc
b/source/blender/io/gpencil/intern/gpencil_io_svg.cc
index 1fbedc64901..f22180476c6 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_svg.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_svg.cc
@@ -252,12 +252,6 @@ void GpencilExporterSVG::export_stroke_path(pugi::xml_node
gpl_node, const bool
float col[3];
std::string stroke_hex;
if (is_fill) {
- if (gp_style_is_stroke()) {
- gps_node.append_attribute("stroke-opacity").set_value(fill_color[3] *
gpl->opacity);
- }
- else {
- gps_node.append_attribute("stroke-opacity").set_value("none");
- }
gps_node.append_attribute("fill-opacity").set_value(fill_color[3] *
gpl->opacity);
interp_v3_v3v3(col, fill_color, gpl->tintcolor, gpl->tintcolor[3]);
@@ -265,8 +259,6 @@ void GpencilExporterSVG::export_stroke_path(pugi::xml_node
gpl_node, const bool
stroke_hex = rgb_to_hex(col);
}
else {
- gps_node.append_attribute("stroke-opacity")
- .set_value(stroke_color[3] * stroke_average_opacity() * gpl->opacity);
gps_node.append_attribute("fill-opacity")
.set_value(stroke_color[3] * stroke_average_opacity() * gpl->opacity);
@@ -275,11 +267,7 @@ void GpencilExporterSVG::export_stroke_path(pugi::xml_node
gpl_node, const bool
stroke_hex = rgb_to_hex(col);
}
gps_node.append_attribute("fill").set_value(stroke_hex.c_str());
-
- if (gp_style_is_stroke()) {
- gps_node.append_attribute("stroke").set_value(stroke_hex.c_str());
- gps_node.append_attribute("stroke-width").set_value("1.0");
- }
+ gps_node.append_attribute("stroke").set_value("none");
std::string txt = "M";
for (int i = 0; i < gps->totpoints; i++) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs