Hi, thanks for library.
Found some problem in SVGData. I had simple path and when i loaded it with .Path everything worked fine, but when i manually called .Line and then .Close it didn't show.
Turns out that there are two bugs:
-
Because z command does not have arguments, this check in LoadCommand prevents z command from loading and calling .Close. (numArgs will always be 0, as will argsIndex at the start)
-
.Close method just makes line to .Start position. The problem is that .Start position never have been changed from Vector2.zero. That is why currently it makes opposite of closing shape - opening it if first point wasn't zero. (That's why my line which is actually is closed, loaded ok with .Path, but failed to show when i called .Close)
Hi, thanks for library.
Found some problem in
SVGData. I had simple path and when i loaded it with.Patheverything worked fine, but when i manually called.Lineand then.Closeit didn't show.Turns out that there are two bugs:
Because
zcommand does not have arguments, this check inLoadCommandpreventszcommand from loading and calling.Close. (numArgswill always be 0, as willargsIndexat the start).Closemethod just makes line to.Startposition. The problem is that.Startposition never have been changed fromVector2.zero. That is why currently it makes opposite of closing shape - opening it if first point wasn't zero. (That's why my line which is actually is closed, loaded ok with.Path, but failed to show when i called.Close)