mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
working on texture
This commit is contained in:
@@ -183,6 +183,7 @@ cc.Asset = cc.Class({
|
||||
|
||||
/**
|
||||
* Set native file name for this asset.
|
||||
* @seealso nativeUrl
|
||||
*
|
||||
* @method _setRawAsset
|
||||
* @param {String} filename
|
||||
|
||||
@@ -100,7 +100,7 @@ module.exports = {
|
||||
if (Array.isArray(packedJson)) {
|
||||
unpackerData.unpacker = new Unpackers.JsonUnpacker();
|
||||
}
|
||||
else if (packedJson.type === TextureUnpacker.ID) {
|
||||
else if (packedJson.type === Unpackers.TextureUnpacker.ID) {
|
||||
unpackerData.unpacker = new Unpackers.TextureUnpacker();
|
||||
}
|
||||
unpackerData.unpacker.load(packIndices[packUuid], packedJson);
|
||||
|
||||
Reference in New Issue
Block a user