Commit f2f9be40 authored by 李维's avatar 李维

保护atlas为空状态

parent 0cfa63ea
...@@ -510,7 +510,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -510,7 +510,7 @@ export abstract class middleLayerBase extends cc.Component {
const atlas = dragonDisplay.dragonAtlasAsset; const atlas = dragonDisplay.dragonAtlasAsset;
const asset = dragonDisplay.dragonAsset; const asset = dragonDisplay.dragonAsset;
if (atlas.texture) { if (atlas && atlas.texture) {
if (atlas.texture.nativeUrl.includes('h5template')) { if (atlas.texture.nativeUrl.includes('h5template')) {
node.children.forEach(child => { node.children.forEach(child => {
this.getDragonDisplayAssetList(child); this.getDragonDisplayAssetList(child);
......
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