This file has a uri reference to Box With Spaces.bin. But this library performs urlencode of the URI so spaces become %20 and then fails because it cannot find a file named Box%20With%20Spaces.bin
The url-encoding happens because of a round-trip through net/url.Parse
A solution would be to only use the parsed URL if the scheme is not empty. i.e. the URL is http/file/etc
Take a look at the glTF sample files called Box With Spaces
This file has a
uri
reference toBox With Spaces.bin
. But this library performs urlencode of the URI so spaces become%20
and then fails because it cannot find a file namedBox%20With%20Spaces.bin
The url-encoding happens because of a round-trip through
net/url.Parse
A solution would be to only use the parsed URL if the scheme is not empty. i.e. the URL is http/file/etc