Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader3D throws a null reference error when attempting to access an obj file with no path separators. #22

Open
ghost opened this issue Jul 28, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2013

When using the Loader3D class to read in an .obj file with a corresponding .mtl file, I received a reference error on line 485 of src/away3d/loaders/Loader3D.as. Upon investigation, I found that the code assumes that the url variable contains a separator (a '/' or ''). If one is not found, the pathArray is not initialized and the call the pop() attempts to access a null variable.

As a work around, I was able to supply "./" at the beginning of the URL to properly load my 3D object. I'm not sure if core-fp10 is still being maintained but I still have a use for it so I will submit a patch for you to optionally include if you feel it's worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants