Merge pull request #1269 from natural-law/issue4637

Solve the error when set dragonAsset value at runtime.
This commit is contained in:
Jare Guo
2016-11-08 17:58:23 +08:00
committed by GitHub
+4 -2
View File
@@ -90,8 +90,10 @@ dragonBones.ArmatureDisplay = cc.Class({
this._parseDragonAsset();
this._refresh();
this._defaultArmatureIndex = 0;
this._animationIndex = 0;
if (CC_EDITOR) {
this._defaultArmatureIndex = 0;
this._animationIndex = 0;
}
},
tooltip: 'i18n:COMPONENT.dragon_bones.dragon_bones_asset'
},