Hide brush tips folder from Style Editor

This commit is contained in:
manongjohn 2023-02-15 07:27:14 -05:00
parent c4051ff30e
commit 67d7d16507

View file

@ -6049,10 +6049,14 @@ void StyleEditor::createStylePage(StylePageType pageType, TFilePath styleFolder,
TSystem::readDirectory_DirItems(fpList, styleFolder); TSystem::readDirectory_DirItems(fpList, styleFolder);
QStringList::iterator fpListIt; QStringList::iterator fpListIt;
for (fpListIt = fpList.begin(); fpListIt != fpList.end(); fpListIt++) for (fpListIt = fpList.begin(); fpListIt != fpList.end(); fpListIt++) {
// hide Texture\Brush tips used by Flows Fx
if (pageType == StylePageType::Texture && !isFavorite && dirDepth == 0 && *fpListIt ==
"brush tips")
continue;
createStylePage(pageType, styleFolder + TFilePath(*fpListIt), filters, createStylePage(pageType, styleFolder + TFilePath(*fpListIt), filters,
isFavorite, (dirDepth + 1)); isFavorite, (dirDepth + 1));
}
} catch (...) { } catch (...) {
return; return;
} }