From 0b689db2dd6f67c737012364a637a50a174d59e5 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Thu, 18 Nov 2021 14:53:18 -0500 Subject: [PATCH] Show perspective preset grid files in Browser --- toonz/sources/toonz/filebrowser.cpp | 1 + toonz/sources/toonzqt/gutil.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/toonz/sources/toonz/filebrowser.cpp b/toonz/sources/toonz/filebrowser.cpp index 12aca45c..de37b63a 100644 --- a/toonz/sources/toonz/filebrowser.cpp +++ b/toonz/sources/toonz/filebrowser.cpp @@ -599,6 +599,7 @@ void FileBrowser::refreshCurrentFolderItems() { it->getType() != "tnzbat" && it->getType() != "mpath" && it->getType() != "curve" && it->getType() != "tpl" && it->getType() != "macrofx" && it->getType() != "plugin" && + it->getType() != "grid" && TFileType::getInfo(*it) == TFileType::UNKNOW_FILE) continue; } else if (!m_filter.contains(QString::fromStdString(it->getType()))) diff --git a/toonz/sources/toonzqt/gutil.cpp b/toonz/sources/toonzqt/gutil.cpp index bc8dbc81..ce405064 100644 --- a/toonz/sources/toonzqt/gutil.cpp +++ b/toonz/sources/toonzqt/gutil.cpp @@ -642,7 +642,8 @@ bool isResource(const QString &path) { return (TFileType::isViewable(type) || type & TFileType::MESH_IMAGE || type == TFileType::AUDIO_LEVEL || type == TFileType::TABSCENE || type == TFileType::TOONZSCENE || fp.getType() == "tpl" || - fp.getType() == "macrofx" || fp.getType() == "plugin"); + fp.getType() == "macrofx" || fp.getType() == "plugin" || + fp.getType() == "grid"); } //-----------------------------------------------------------------------------