SVG2Godot icon indicating copy to clipboard operation
SVG2Godot copied to clipboard

case insensitive string replacement

Open jor-el-swe opened this issue 3 years ago • 1 comments

Hello!

Thank you so much for this contribution. It is really useful to me.

I might have come across a bug. In func process_svg_path()

you use the replacen() function.

This leads to all the letters being upper-case (Godot 4.0), and therefore the match statement cannot distinguish between relative and absolute positions.

A replace(), instead, solves this problem.

Kind regards,

Joel

jor-el-swe avatar Aug 16 '22 10:08 jor-el-swe

Thanks Joel, I'll look into it.

pixelriot avatar Aug 31 '22 08:08 pixelriot