File tree Expand file tree Collapse file tree 3 files changed +4
-32
lines changed
Expand file tree Collapse file tree 3 files changed +4
-32
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def draw_glyph(glyph_strokes):
6969 stroke .material_index = mat_index
7070
7171 for vert in glyph_strokes [y ]:
72- stroke .points .add (gpencil , 1 )
72+ stroke .points .add (1 )
7373 stroke .points [- 1 ].co .x = vert [0 ]
7474 stroke .points [- 1 ].co .y = vert [1 ]
7575
@@ -79,7 +79,7 @@ def draw_glyph(glyph_strokes):
7979 stroke .material_index = mat_index
8080
8181 for vert in framed_strokes [x ]:
82- stroke .points .add (gpencil , 1 )
82+ stroke .points .add (1 )
8383 stroke .points [- 1 ].co .x = vert [0 ]
8484 stroke .points [- 1 ].co .y = vert [1 ]
8585
@@ -93,7 +93,7 @@ def draw_glyph(glyph_strokes):
9393 stroke .material_index = mat_index
9494
9595 for vert in stroke_verts :
96- stroke .points .add (gpencil , 1 )
96+ stroke .points .add (1 )
9797 stroke .points [- 1 ].co .x = vert [0 ]
9898 stroke .points [- 1 ].co .y = vert [1 ]
9999
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def execute(self, context):
160160 obj = bpy .context .view_layer .objects .active
161161 gpencil = obj .data
162162
163- text = bpy .data .texts [gpencil .source_text ].as_string ()
163+ text = bpy .data .texts [gpencil .source_text ].as_string (). strip ()
164164
165165 font = gpencil .font
166166 letter_folder = os .path .join (os .path .dirname (__file__ ), 'fonts' , font )
You can’t perform that action at this time.
0 commit comments