working on texture

This commit is contained in:
Jare Guo
2017-10-26 10:48:13 +08:00
parent ed40ff034f
commit e3a588169c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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);