mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1213 from natural-law/no-defer-load-dragonbones
Prevent defer load DragonBones resources.
This commit is contained in:
@@ -44,6 +44,10 @@ var DragonBonesAsset = cc.Class({
|
||||
}
|
||||
},
|
||||
|
||||
statics: {
|
||||
preventDeferredLoadDependents: true
|
||||
},
|
||||
|
||||
createNode: CC_EDITOR && function (callback) {
|
||||
var node = new cc.Node(this.name);
|
||||
var armatureDisplay = node.addComponent(dragonBones.ArmatureDisplay);
|
||||
|
||||
@@ -51,6 +51,10 @@ var DragonBonesAtlasAsset = cc.Class({
|
||||
},
|
||||
},
|
||||
|
||||
statics: {
|
||||
preventDeferredLoadDependents: true
|
||||
},
|
||||
|
||||
createNode: CC_EDITOR && function (callback) {
|
||||
var node = new cc.Node(this.name);
|
||||
var armatureDisplay = node.addComponent(dragonBones.ArmatureDisplay);
|
||||
|
||||
Reference in New Issue
Block a user