chetto1983 / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Textures with spaces in name won't display #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Name texture with spaces: ex. Object - Front.jpeg
2. 3D object won't display
3. Rename texture without spaces: ex. Object_Front.jpeg
4. 3D object will know display textures

Just wanted to point out an issue I ran into and took me a bit to figure out 
the issue. Not sure if it would be considered a bug, could be more of just a 
workflow guideline for output. 

Original issue reported on code.google.com by shanedav...@gmail.com on 8 Mar 2014 at 7:05

GoogleCodeExporter commented 8 years ago
Thanks for reporting the defect! An URI string should not contain any literal 
space. Spaces should be replaced with either "%20" or "+", which can be done by 
using the encodeURI() method to encode the resource names before sending 
requests.

I'll fix this soon.

Original comment by Humu2...@gmail.com on 8 Mar 2014 at 12:04