[Bf-blender-cvs] [219bea85721] greasepencil-object: GPencil: Rename export_stroke function

Antonio Vazquez noreply at git.blender.org
Mon Jul 27 19:00:13 CEST 2020


Commit: 219bea85721b778c503c62d121b5362ec888897a
Author: Antonio Vazquez
Date:   Mon Jul 27 18:59:30 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rB219bea85721b778c503c62d121b5362ec888897a

GPencil: Rename export_stroke function

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

M	source/blender/io/gpencil/intern/gpencil_io_svg.cc
M	source/blender/io/gpencil/intern/gpencil_io_svg.h

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

diff --git a/source/blender/io/gpencil/intern/gpencil_io_svg.cc b/source/blender/io/gpencil/intern/gpencil_io_svg.cc
index c87ae5dd1fa..f70c2311af3 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_svg.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_svg.cc
@@ -234,7 +234,7 @@ void GpencilExporterSVG::export_layers(void)
       else {
         /* Fill. */
         if ((is_fill) && (params.flag & GP_EXPORT_FILL)) {
-          export_stroke(gpl_node, gps, diff_mat, true);
+          export_stroke_path(gpl_node, gps, diff_mat, true);
         }
 
         /* Stroke. */
@@ -246,7 +246,7 @@ void GpencilExporterSVG::export_layers(void)
           // ED_gpencil_project_stroke_to_view(params.C, gpl, gps_perimeter);
           BKE_gpencil_stroke_sample(gps_perimeter, 0.03f, false);
 
-          export_stroke(gpl_node, gps_perimeter, diff_mat, false);
+          export_stroke_path(gpl_node, gps_perimeter, diff_mat, false);
 
           BKE_gpencil_free_stroke(gps_perimeter);
         }
@@ -301,16 +301,16 @@ void GpencilExporterSVG::export_point(pugi::xml_node gpl_node,
 }
 
 /**
- * Export a stroke
+ * Export a stroke using path
  * \param gpl_node: Node of the layer.
  * \param gps: Stroke to export.
  * \param diff_mat: Transformation matrix.
  * \param is_fill: True if the stroke is only fill
  */
-void GpencilExporterSVG::export_stroke(pugi::xml_node gpl_node,
-                                       struct bGPDstroke *gps,
-                                       float diff_mat[4][4],
-                                       const bool is_fill)
+void GpencilExporterSVG::export_stroke_path(pugi::xml_node gpl_node,
+                                            struct bGPDstroke *gps,
+                                            float diff_mat[4][4],
+                                            const bool is_fill)
 {
   pugi::xml_node gps_node = gpl_node.append_child("path");
 
diff --git a/source/blender/io/gpencil/intern/gpencil_io_svg.h b/source/blender/io/gpencil/intern/gpencil_io_svg.h
index 91152237bd4..adf4f6d99f5 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_svg.h
+++ b/source/blender/io/gpencil/intern/gpencil_io_svg.h
@@ -55,10 +55,10 @@ class GpencilExporterSVG : public GpencilExporter {
                     struct bGPDlayer *gpl,
                     struct bGPDstroke *gps,
                     float diff_mat[4][4]);
-  void export_stroke(pugi::xml_node gpl_node,
-                     struct bGPDstroke *gps,
-                     float diff_mat[4][4],
-                     const bool is_fill);
+  void export_stroke_path(pugi::xml_node gpl_node,
+                          struct bGPDstroke *gps,
+                          float diff_mat[4][4],
+                          const bool is_fill);
 };
 
 }  // namespace gpencil



More information about the Bf-blender-cvs mailing list