mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1269 from natural-law/issue4637
Solve the error when set dragonAsset value at runtime.
This commit is contained in:
@@ -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'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user