更新编译文件

This commit is contained in:
SmallMain 2022-07-12 20:32:56 +08:00
parent 7921d3c865
commit b98b586745
3 changed files with 27 additions and 25 deletions

View File

@ -57106,7 +57106,7 @@
"use strict";
cc.sp = {
inited: false,
version: "1.0.0",
version: "1.1.0",
MAX_MULTITEXTURE_NUM: -1,
autoSwitchMaterial: true,
allowDynamicAtlas: true,
@ -96202,29 +96202,31 @@
var packedFrame;
false;
var region = attachment.region;
var alreadyInAtlas = !!region._original;
if (alreadyInAtlas) _packedRegions.includes(region) && this.updatePackedAttachment(attachment, false); else if (region.texture && region.texture._texture.packable) {
if (region._spriteFrame) {
var _spriteFrame = region._spriteFrame;
region._spriteFrame = null;
_spriteFrame.destroy();
if (region) {
var alreadyInAtlas = !!region._original;
if (alreadyInAtlas) _packedRegions.includes(region) && this.updatePackedAttachment(attachment, false); else if (region.texture && region.texture._texture.packable) {
if (region._spriteFrame) {
var _spriteFrame = region._spriteFrame;
region._spriteFrame = null;
_spriteFrame.destroy();
}
_tmpRegionData.initWithAttachment(attachment);
var _frame = _tmpRegionData.toSpriteFrame();
var _packedFrame = cc.dynamicAtlasManager.insertSpriteFrame(_frame);
if (_packedFrame) {
_frame._setDynamicAtlasFrame(_packedFrame);
region._original = {
_texture: region.texture,
_x: region.x,
_y: region.y,
_ref: 0
};
region._spriteFrame = _frame;
_tmpRegionData.updateWithPackedFrame(_packedFrame);
this.updatePackedAttachment(attachment);
_packedRegions.push(region);
} else _frame.destroy();
}
_tmpRegionData.initWithAttachment(attachment);
var _frame = _tmpRegionData.toSpriteFrame();
var _packedFrame = cc.dynamicAtlasManager.insertSpriteFrame(_frame);
if (_packedFrame) {
_frame._setDynamicAtlasFrame(_packedFrame);
region._original = {
_texture: region.texture,
_x: region.x,
_y: region.y,
_ref: 0
};
region._spriteFrame = _frame;
_tmpRegionData.updateWithPackedFrame(_packedFrame);
this.updatePackedAttachment(attachment);
_packedRegions.push(region);
} else _frame.destroy();
}
}
}

File diff suppressed because one or more lines are too long

View File

@ -56799,7 +56799,7 @@
"use strict";
cc.sp = {
inited: false,
version: "1.0.0",
version: "1.1.0",
MAX_MULTITEXTURE_NUM: -1,
autoSwitchMaterial: true,
allowDynamicAtlas: true,