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

AssetLoader.OnRetrievalFailed overwrites asset URL #724

Open
cemkod opened this issue Dec 25, 2015 · 0 comments
Open

AssetLoader.OnRetrievalFailed overwrites asset URL #724

cemkod opened this issue Dec 25, 2015 · 0 comments

Comments

@cemkod
Copy link

cemkod commented Dec 25, 2015

In https://github.com/away3d/away3d-core-fp11/blob/dev/src/away3d/loaders/AssetLoader.as line 492:

event = new LoaderEvent(LoaderEvent.LOAD_ERROR, _uri, isDependency, event.message);

while recreating the event to throw to external listener, this line overwrites the correct asset URL with the URL of the main document file. This leaves the external listener unable to know exactly which dependency asset threw an error while loading.

Is there any reason for this behaviour?

I think this should be:

event = new LoaderEvent(LoaderEvent.LOAD_ERROR, event.url, isDependency, event.message);
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

1 participant