AssetLoader is not honoring includeDependencies

Software: Away3D 4.x

rtaboada, Newbie
Posted: 08 August 2012 10:36 PM   Total Posts: 2

In the gold version of Away3D the AssetLoader is trying to load the model dependencies even when I pass an AssetLoaderContext that have includeDependencies = false.

Here is a snippet of my code:

var context:AssetLoaderContext = new AssetLoaderContext();
context.includeDependencies false;
            
_loader = new Loader3D(false);   
_loader.addEventListener(AssetEvent.ASSET_COMPLETEonAssetComplete);
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETEonResourceComplete); 
_loader.addEventListener(LoaderEvent.LOAD_ERRORonLoadError); 
_loader.load(new URLRequest(_modelURI), context); 

When this code run I receive a LOAD_ERROR event when the loader tries to load a dependency. In this project we don’t use any dependency defined inside the mesh file, we have to load all the textures separately because the user can change the texture of the mesh.

Don’t know if this helps, but in this particular case the model file is a .3DS.

This code worked fine in Away3D Alpha and Beta. Only when I updated to the 4.0.7 that this error started, I also tried it with the 4.0.9 build with produces the same error.

Is this a bug? Or I am doing something wrong?

Thanks

   

Richard Olsson, Administrator
Posted: 09 August 2012 03:46 PM   Total Posts: 1192   [ # 1 ]

This definitely sounds like a bug. Please file it at http://github.com/away3d/away3d-core-fp11/issues and link to this thread. I’ll take a look ASAP. Thanks!

   

rtaboada, Newbie
Posted: 09 August 2012 05:28 PM   Total Posts: 2   [ # 2 ]

Bug filed.

Thanks, Richard!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X