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_COMPLETE, onAssetComplete);
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
_loader.addEventListener(LoaderEvent.LOAD_ERROR, onLoadError);
_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