Skip to content

AssetLoader.OnRetrievalFailed overwrites asset URL #724

@cemkod

Description

@cemkod

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions