Commit 804044d7 authored by asdf's avatar asdf

非骨骼动画类型不加载骨骼动画

parent 577a063f
......@@ -62,6 +62,9 @@ cc.Class({
})
},
loadSpine() {
if (this.data.type == 'Image') {
return;
}
this.dragonBone.dragonAtlasAsset = null;
this.dragonBone.dragonAsset = null;
this.dragonBone.armatureName = '';
......@@ -93,7 +96,7 @@ cc.Class({
this.dragonBone.dragonAtlasAsset = atlas;
this.dragonBone.dragonAsset = asset;
let data = asset._dragonBonesJsonData.armature[0];
if(!data){
if (!data) {
return;
}
this.dragonBone.armatureName = data.name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment