mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
refine ipc reply
This commit is contained in:
@@ -88,7 +88,7 @@ var AssetLibrary = {
|
||||
|
||||
_queryAssetInfoInEditor: function (uuid, callback) {
|
||||
if (CC_EDITOR) {
|
||||
Editor.Ipc.sendToMain( 'scene:query-asset-info-by-uuid', uuid, function (info) {
|
||||
Editor.Ipc.sendToMain( 'scene:query-asset-info-by-uuid', uuid, function (err,info) {
|
||||
if (info) {
|
||||
Editor.UuidCache.cache(info.url, uuid);
|
||||
var ctor = Editor.assets[info.type];
|
||||
|
||||
Reference in New Issue
Block a user