From eb3745c317bc9b1e08d208cf150c813b569b0d5f Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 29 Jan 2018 11:15:14 +0800 Subject: [PATCH] Reverts dragonBones CCFactory change to avoid assert. --- extensions/dragonbones/ArmatureDisplay.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions/dragonbones/ArmatureDisplay.js b/extensions/dragonbones/ArmatureDisplay.js index e1a4b294e6..c8e41e8f6a 100644 --- a/extensions/dragonbones/ArmatureDisplay.js +++ b/extensions/dragonbones/ArmatureDisplay.js @@ -284,7 +284,14 @@ dragonBones.ArmatureDisplay = cc.Class({ // IMPLEMENT ctor: function () { - this._factory = dragonBones.CCFactory.getInstance(); + if (CC_JSB) { + // TODO Fix me + // If using the getFactory in JSB. + // There may be throw errors when close the application. + this._factory = new dragonBones.CCFactory(); + } else { + this._factory = dragonBones.CCFactory.getInstance(); + } }, __preload: function () {