[Bf-blender-cvs] [2c7e7322b48] greasepencil-object: GPencil: Fix error with SVG export path has points

Antonio Vazquez noreply at git.blender.org
Thu Jul 30 16:39:31 CEST 2020


Commit: 2c7e7322b48e07dbb972f6759eb7eec45f8a7018
Author: Antonio Vazquez
Date:   Thu Jul 30 16:39:15 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rB2c7e7322b48e07dbb972f6759eb7eec45f8a7018

GPencil: Fix error with SVG export path has points

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

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 c2c406912a1..0fff64e75fb 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_svg.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_svg.cc
@@ -78,7 +78,7 @@ bool GpencilExporterSVG::write(std::string actual_frame)
 
   /* Add frame to filename. */
   std::string frame_file = out_filename;
-  size_t found = frame_file.find_first_of(".", 0);
+  size_t found = frame_file.find_last_of(".", 0);
   if (found != std::string::npos) {
     frame_file.replace(found, 8, actual_frame + ".svg");
   }



More information about the Bf-blender-cvs mailing list