Commit 9c309164 authored by liujiaxin's avatar liujiaxin

1

parent 02aa2c64
...@@ -351,6 +351,7 @@ let pg = { ...@@ -351,6 +351,7 @@ let pg = {
console.log('loadAsset',typeof url , url) console.log('loadAsset',typeof url , url)
if (typeof url != 'string') { if (typeof url != 'string') {
resolve(url); resolve(url);
return
} }
if (url) { if (url) {
if (!option || Object.keys(option).length == 0) option = {type: cc.Texture2D}; if (!option || Object.keys(option).length == 0) option = {type: cc.Texture2D};
......
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