mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
remove getAssetUrl
This commit is contained in:
@@ -72,7 +72,7 @@ function syncFlow (item) {
|
||||
var pipeId = this.id;
|
||||
var itemState = item.states[pipeId];
|
||||
var next = this.next;
|
||||
|
||||
|
||||
if (item.error || itemState === ItemState.WORKING || itemState === ItemState.ERROR) {
|
||||
return;
|
||||
}
|
||||
@@ -374,10 +374,9 @@ JS.mixin(Pipeline.prototype, {
|
||||
if (!item)
|
||||
return item;
|
||||
|
||||
if (item.alias) {
|
||||
url = cc.AssetLibrary._getAssetUrl(item.alias);
|
||||
item = this._cache[url];
|
||||
}
|
||||
// downloader.js downloadUuid
|
||||
if (item.alias)
|
||||
item = this._cache[item.alias];
|
||||
|
||||
return item;
|
||||
},
|
||||
@@ -421,4 +420,4 @@ JS.mixin(Pipeline.prototype, {
|
||||
}
|
||||
});
|
||||
|
||||
cc.Pipeline = module.exports = Pipeline;
|
||||
cc.Pipeline = module.exports = Pipeline;
|
||||
|
||||
Reference in New Issue
Block a user