Commit: f27629c5938d4f6ec1b7edb9a7ed5b8087faaf0c
Author: YimingWu
Date:   Wed Jul 10 09:55:50 2019 +0800
Branches: greasepencil-object
https://developer.blender.org/rBf27629c5938d4f6ec1b7edb9a7ed5b8087faaf0c

Gpenci: Fix missing path end markings in writesvg.c

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

M       source/blender/blenkernel/intern/writesvg.c

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

diff --git a/source/blender/blenkernel/intern/writesvg.c 
b/source/blender/blenkernel/intern/writesvg.c
index 9d934868ad5..af2f50273db 100644
--- a/source/blender/blenkernel/intern/writesvg.c
+++ b/source/blender/blenkernel/intern/writesvg.c
@@ -69,7 +69,7 @@ static void write_paths_from_callback(void* iterator, Text* 
ta, svg_get_path_cal
         
         first_in = 1;
         while(get_node(iterator,&x,&y)){
-            sprintf(buf,"%c %f %f\n",first_in?'M':'L',x,y);
+            sprintf(buf,"%c %f %f\n",first_in?'M':'L',x,y); /* Should handle 
closed stroke as well. */
             BKE_text_write(ta, NULL, buf);
             first_in = 0;
         }
@@ -80,6 +80,7 @@ static void write_paths_from_callback(void* iterator, Text* 
ta, svg_get_path_cal
         /* end the path */
         sprintf(buf,"\" fill=#%X%X%X; stroke=#%X%X%X; stroke-width=\"%f\" 
/>\n",
             FAC_255_COLOR3(fill_color), FAC_255_COLOR3(stroke_color), 
stroke_width);
+        BKE_text_write(ta, NULL, buf);
     }
     
 }

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

Reply via email to