mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-25 11:18:30 +00:00
更新编译文件
This commit is contained in:
parent
7921d3c865
commit
b98b586745
@ -57106,7 +57106,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
cc.sp = {
|
cc.sp = {
|
||||||
inited: false,
|
inited: false,
|
||||||
version: "1.0.0",
|
version: "1.1.0",
|
||||||
MAX_MULTITEXTURE_NUM: -1,
|
MAX_MULTITEXTURE_NUM: -1,
|
||||||
autoSwitchMaterial: true,
|
autoSwitchMaterial: true,
|
||||||
allowDynamicAtlas: true,
|
allowDynamicAtlas: true,
|
||||||
@ -96202,29 +96202,31 @@
|
|||||||
var packedFrame;
|
var packedFrame;
|
||||||
false;
|
false;
|
||||||
var region = attachment.region;
|
var region = attachment.region;
|
||||||
var alreadyInAtlas = !!region._original;
|
if (region) {
|
||||||
if (alreadyInAtlas) _packedRegions.includes(region) && this.updatePackedAttachment(attachment, false); else if (region.texture && region.texture._texture.packable) {
|
var alreadyInAtlas = !!region._original;
|
||||||
if (region._spriteFrame) {
|
if (alreadyInAtlas) _packedRegions.includes(region) && this.updatePackedAttachment(attachment, false); else if (region.texture && region.texture._texture.packable) {
|
||||||
var _spriteFrame = region._spriteFrame;
|
if (region._spriteFrame) {
|
||||||
region._spriteFrame = null;
|
var _spriteFrame = region._spriteFrame;
|
||||||
_spriteFrame.destroy();
|
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";
|
"use strict";
|
||||||
cc.sp = {
|
cc.sp = {
|
||||||
inited: false,
|
inited: false,
|
||||||
version: "1.0.0",
|
version: "1.1.0",
|
||||||
MAX_MULTITEXTURE_NUM: -1,
|
MAX_MULTITEXTURE_NUM: -1,
|
||||||
autoSwitchMaterial: true,
|
autoSwitchMaterial: true,
|
||||||
allowDynamicAtlas: true,
|
allowDynamicAtlas: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user