away3d / away3d-core-fp11

Away3D engine for Flash Player 11
http://www.away3d.com
Other
640 stars 273 forks source link

AssetLibraryIterator.filter() doesn't check for filter function #619

Closed esidegallery closed 11 years ago

esidegallery commented 11 years ago

AssetLibraryIterator line 54, the conditional checks for an assetTypeFilter or namespaceFilter only, so a filter fucntion is ignored unless one of the other two are set also.

Should be changed to:

if (assetTypeFilter || namespaceFilter || filterFunc != null)