update Xcode project, fix some warnings, update android icons, ignore unrecognized files in the doc browser
This commit is contained in:
@@ -72,6 +72,10 @@ void NodeDialogBrowse::init_controls()
|
||||
auto names = Asset::list_files(data_path, false, ".*\\.ppi");
|
||||
for (const auto& n : names)
|
||||
{
|
||||
ui::Image thumb = ui::Canvas::I->thumbnail_read(data_path + "/" + n);
|
||||
if (thumb.width == 0 || thumb.height == 0)
|
||||
continue;
|
||||
|
||||
auto node = new NodeDialogBrowseItem;
|
||||
node->m_manager = m_manager;
|
||||
node->init();
|
||||
@@ -90,7 +94,6 @@ void NodeDialogBrowse::init_controls()
|
||||
};
|
||||
|
||||
// load thumb
|
||||
ui::Image thumb = ui::Canvas::I->thumbnail_read(node->m_path);
|
||||
auto image_tex = node->find<NodeImageTexture>("thumb-tex");
|
||||
image_tex->tex.destroy();
|
||||
image_tex->tex.create(thumb);
|
||||
|
||||
Reference in New Issue
Block a user