mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Restore default value instead of delete _uuid
This commit is contained in:
@@ -215,7 +215,7 @@ var AssetLibrary = {
|
||||
if (CC_EDITOR || isScene(asset)) {
|
||||
Loader.removeItem(randomUuid);
|
||||
}
|
||||
delete asset._uuid;
|
||||
asset._uuid = '';
|
||||
callback(error, asset);
|
||||
});
|
||||
}
|
||||
@@ -223,7 +223,7 @@ var AssetLibrary = {
|
||||
if (CC_EDITOR || isScene(asset)) {
|
||||
Loader.removeItem(randomUuid);
|
||||
}
|
||||
delete asset._uuid;
|
||||
asset._uuid = '';
|
||||
callback(error, asset);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user