Open GoogleCodeExporter opened 9 years ago
Decided to learn about Away3d and just "suffered" from this as well, however
I'd change Loader3D this way, replacing:
if(url.indexOf("/") != -1)
pathArray = url.split("/");
pathArray.pop();
var path:String;
if(url.indexOf("/") != -1)
path = (pathArray.length > 0)? pathArray.join("/") + "/" : pathArray.join("/");
with
var path:String;
if(url.indexOf("/") != -1) {
pathArray = url.split("/");
pathArray.pop();
path = (pathArray.length > 0)? pathArray.join("/") + "/" : pathArray.join("/");
}
Just a small optimization... I haven't looked how mtlPath and texturePath are
used, but I guess the following two ifs statements could be added inside this
if as well...
Original comment by neverbi...@gmail.com
on 30 Sep 2010 at 6:10
Original issue reported on code.google.com by
gla...@gmail.com
on 28 Sep 2010 at 3:35