From d187fdfef9264c603b020ed93df4ff751df2ae47 Mon Sep 17 00:00:00 2001 From: zhangbin Date: Wed, 11 Jan 2017 13:45:38 +0800 Subject: [PATCH] Solve the error logic in dragonBones.CCSlot. --- extensions/dragonbones/CCSlot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/dragonbones/CCSlot.js b/extensions/dragonbones/CCSlot.js index 2553b5f1eb..b9d5fbe0dc 100644 --- a/extensions/dragonbones/CCSlot.js +++ b/extensions/dragonbones/CCSlot.js @@ -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); }