diff --git a/cocos/editor-support/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp index e84266ecfd..f8f55f1aba 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp @@ -312,6 +312,11 @@ namespace cocostudio { fileExist = true; } + else if(SpriteFrameCache::getInstance()->getSpriteFrameByName(imageFileName)) + { + fileExist = true; + imageFileNameType = 1; + } else { errorFilePath = imageFileName;