update Xcode project, fix some warnings, update android icons, ignore unrecognized files in the doc browser

This commit is contained in:
2018-09-22 23:21:39 +02:00
parent 3191730c31
commit c6f8bf7b9f
25 changed files with 33 additions and 22 deletions

View File

@@ -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);