mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
Solve the error logic in dragonBones.CCSlot.
This commit is contained in:
@@ -247,6 +247,7 @@ dragonBones.CCSlot = cc.Class({
|
||||
this._pivotY -= currentTextureData.region.height * scale;
|
||||
|
||||
this._rawDisplay.setSpriteFrame(currentTextureData.texture);
|
||||
this._rawDisplay.setContentSize(currentTextureData.texture.getOriginalSize());
|
||||
if (texture !== currentTextureData.texture.getTexture()) {
|
||||
this._rawDisplay.setTexture(texture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user