From b00b798ec4e68634ce8477f2bdec51d9eda40ada Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Sat, 14 Oct 2023 16:18:30 -0400
Subject: [PATCH] Revert "Allow mesh assets for opensim"

This reverts commit dfc2892cf0d77c1546c2b107c98cc3487031ba26.
---
 indra/llcommon/llassettype.cpp     | 2 +-
 indra/newview/llinventorymodel.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/llcommon/llassettype.cpp b/indra/llcommon/llassettype.cpp
index d2eb6911c64..215c58497c3 100644
--- a/indra/llcommon/llassettype.cpp
+++ b/indra/llcommon/llassettype.cpp
@@ -92,7 +92,7 @@ LLAssetDictionary::LLAssetDictionary()
 
 	addEntry(LLAssetType::AT_LINK, 				new AssetEntry("LINK",				"link",		"sym link",			false,		false,		true));
 	addEntry(LLAssetType::AT_LINK_FOLDER, 		new AssetEntry("FOLDER_LINK",		"link_f", 	"sym folder link",	false,		false,		true));
-	addEntry(LLAssetType::AT_MESH,              new AssetEntry("MESH",              "mesh",     "mesh",             false,      true,       true));
+	addEntry(LLAssetType::AT_MESH,              new AssetEntry("MESH",              "mesh",     "mesh",             false,      false,      false));
 	addEntry(LLAssetType::AT_WIDGET,            new AssetEntry("WIDGET",            "widget",   "widget",           false,      false,      false));
 	addEntry(LLAssetType::AT_PERSON,            new AssetEntry("PERSON",            "person",   "person",           false,      false,      false));
 	addEntry(LLAssetType::AT_SETTINGS,          new AssetEntry("SETTINGS",          "settings", "settings blob",    true,       true,       true));
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 41635c9efd5..4a5a62ac0f5 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -4323,7 +4323,7 @@ void LLInventoryModel::removeCategory(const LLUUID& category_id)
 		}
 		else
 		{
-			const LLUUID& trash_id = findCategoryUUIDForType(LLFolderType::FT_TRASH);
+			const LLUUID trash_id = findCategoryUUIDForType(LLFolderType::FT_TRASH);
 			if (trash_id.notNull())
 			{
 				changeCategoryParent(cat, trash_id, TRUE);
-- 
GitLab