From c5648db10a5e039988d955595aed6b8dcfab6da5 Mon Sep 17 00:00:00 2001 From: yalab Date: Thu, 30 Jun 2016 18:10:08 +0900 Subject: [PATCH] cocosstudio can manage TexturePacker Image. --- .../WidgetReader/ImageViewReader/ImageViewReader.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;