Skip to content

Commit

Permalink
SVG Export: take global postion of strokes into account
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrlabs committed Nov 5, 2023
1 parent 05a9ec1 commit 1e48012
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lorien/Misc/SvgExporter.gd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func _svg_polyline(file: File, stroke: BrushStroke) -> void:
var idx := 0
var point_count := stroke.points.size()
for point in stroke.points:
point += stroke.global_position
if idx < point_count-1:
file.store_string("%.1f %.1f," % [point.x, point.y])
else:
Expand Down

0 comments on commit 1e48012

Please sign in to comment.