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

AssetLibrary.addAsset() makes null dictionary #37

Closed
volzh opened this issue Aug 8, 2011 · 1 comment
Closed

AssetLibrary.addAsset() makes null dictionary #37

volzh opened this issue Aug 8, 2011 · 1 comment

Comments

@volzh
Copy link

volzh commented Aug 8, 2011

var ldr:Loader3D = new Loader3D();
ldr.name = 'some_id';
AssetLibrary.addAsset(ldr); <== this ldr is stored in AssetLibrary._assetDictionary[null]

@richardolsson
Copy link
Member

I have been able to reproduce this, and have pushed a fix to the repository.

On a different note, please consider whether you really want to add a Loader3D to the asset library. This can be done (because Loader3D extends ObjectContainer3D) and might make sense in some cases, but please beware that this does not add each individual asset that the Loader3D loads to the library.

To use a Loader3D to load resources, and automatically add those assets to the asset library as they load in, make sure that the first constructor paramater of Loader3D is true, which is the default.

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

2 participants