You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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 inLoadCommand
preventsz
command from loading and calling.Close
. (numArgs
will always be 0, as willargsIndex
at the start).Close
method just makes line to.Start
position. The problem is that.Start
position 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
)The text was updated successfully, but these errors were encountered: