diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-08-15 23:29:54 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-08-15 23:29:54 +0300 |
commit | ab0f7ff14cd80b89524ba95eb5a39e2d6df55b26 (patch) | |
tree | ebcfa415231c452e1dba96c3fb8816ef7a626782 /indra/llinventory/llfoldertype.cpp | |
parent | 8324ef8edf68c074f4d30322d37b091b3ea10539 (diff) |
First batch of Inventory api; raise interrupts limit
Diffstat (limited to 'indra/llinventory/llfoldertype.cpp')
-rw-r--r-- | indra/llinventory/llfoldertype.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llinventory/llfoldertype.cpp b/indra/llinventory/llfoldertype.cpp index 8f968ae2fd..158759c957 100644 --- a/indra/llinventory/llfoldertype.cpp +++ b/indra/llinventory/llfoldertype.cpp @@ -29,6 +29,7 @@ #include "llfoldertype.h" #include "lldictionary.h" #include "llmemory.h" +#include "llsd.h" #include "llsingleton.h" ///---------------------------------------------------------------------------- @@ -220,3 +221,19 @@ const std::string &LLFolderType::badLookup() static const std::string sBadLookup = "llfoldertype_bad_lookup"; return sBadLookup; } + +LLSD LLFolderType::getTypeNames() +{ + LLSD type_names; + for (S32 type = FT_TEXTURE; type < FT_COUNT; ++type) + { + if (lookupIsEnsembleType((LLFolderType::EType)type)) continue; + + const FolderEntry *entry = LLFolderDictionary::getInstance()->lookup((LLFolderType::EType)type); + if (entry) + { + type_names.append(entry->mName); + } + } + return type_names; +} |