Hack around opensim having completely broken folder types. (by Drake Arconis)
This commit is contained in:
@@ -2311,11 +2311,12 @@ void LLInventoryModel::buildParentChildMap()
|
|||||||
{
|
{
|
||||||
LLViewerInventoryCategory* cat = cats.at(i);
|
LLViewerInventoryCategory* cat = cats.at(i);
|
||||||
catsp = getUnlockedCatArray(cat->getParentUUID());
|
catsp = getUnlockedCatArray(cat->getParentUUID());
|
||||||
if(catsp &&
|
if (catsp &&
|
||||||
// Only the two root folders should be children of null.
|
// Only the two root folders should be children of null.
|
||||||
// Others should go to lost & found.
|
// Others should go to lost & found.
|
||||||
(cat->getParentUUID().notNull() ||
|
(cat->getParentUUID().notNull() ||
|
||||||
cat->getPreferredType() == LLFolderType::FT_ROOT_INVENTORY ))
|
(cat->getPreferredType() == LLFolderType::FT_ROOT_INVENTORY
|
||||||
|
|| (cat->getParentUUID().isNull() && cat->getName() == "My Inventory"))))
|
||||||
{
|
{
|
||||||
catsp->push_back(cat);
|
catsp->push_back(cat);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user