mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
Merge pull request #2290 from dumganhar/v1.8-release
Reverts dragonBones CCFactory change to avoid assert.
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user