Permalink
Browse files

Fixed bug in AssetLoader, details:

Because asset loader would only check whether a parsing had COMPLETED to decide
whether to resume or not, it would sometimes try to resume failed parsings. To
avoid this, it now checks for parsingPaused instead of !parsingComplete.
  • Loading branch information...
1 parent 94dc864 commit 5c64cb9959e816aa120dc4dac15fc150b5e643f6 @richardolsson richardolsson committed Jun 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/away3d/loaders/AssetLoader.as
@@ -115,7 +115,7 @@ package away3d.loaders
// If this load operation is one that needs to be parsed, and the parsing has
// not completed yet, resume parsing after having loaded it's dependency queue
- if (_currentLoader.parser && !_currentLoader.parser.parsingComplete) {
+ if (_currentLoader.parser && _currentLoader.parser.parsingPaused) {
// Back to loading the one we thought was complete
_loadingDependency = _currentDependencies[_currentDependencyIndex-1];
_currentLoader.parser.resumeParsingAfterDependencies();

0 comments on commit 5c64cb9

Please sign in to comment.