History

Hide .baked items from the Asset Browser

Atlante45 committed 9 years ago

Commit da2bede1 parent 3aee6db2 files · +12 −3Browse files

Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/AssetMappingsScriptingInterface.cpp+7−0
@@ -202,6 +202,13 @@ void AssetMappingModel::refresh() { · 201 unmodified lines
202 auto existingPaths = _pathToItemMap.keys();202 auto existingPaths = _pathToItemMap.keys();
203 for (auto& mapping : mappings) {203 for (auto& mapping : mappings) {
204 auto& path = mapping.first;204 auto& path = mapping.first;
205
206 const QString HIDDEN_BAKED_CONTENT_FOLDER = "/.baked/";
207 if (path.startsWith(HIDDEN_BAKED_CONTENT_FOLDER)) {
208 // Hide baked mappings
209 continue;
210 }
211
205 auto parts = path.split("/");212 auto parts = path.split("/");
206 auto length = parts.length();213 auto length = parts.length();
207 214