SVGMeshUnity
SVGMeshUnity copied to clipboard
Problem with closing (z/Z)
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
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)