mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-24 10:48:27 +00:00
更新编译文件
This commit is contained in:
parent
7921d3c865
commit
b98b586745
@ -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
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user