summaryrefslogtreecommitdiff
path: root/indra/newview/llmaterialeditor.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-10-13 16:16:04 -0500
committerDave Parks <davep@lindenlab.com>2022-10-13 16:16:04 -0500
commit15c3c3f94d6d1b3007f3135602bf3f65dc791f57 (patch)
tree6f65ef700c2372f036d1d866a2a18e66dcbc5766 /indra/newview/llmaterialeditor.cpp
parentbc6ad18826995103015cfba6018cf1de30070fee (diff)
parent16a7989f065ac0870ad147592e4604cdcb204405 (diff)
Merge branch 'DRTVWR-559' of ssh://bitbucket.org/lindenlab/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
-rw-r--r--indra/newview/llmaterialeditor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp
index dfb43dfe0d..4a75426265 100644
--- a/indra/newview/llmaterialeditor.cpp
+++ b/indra/newview/llmaterialeditor.cpp
@@ -935,7 +935,7 @@ bool LLMaterialEditor::saveIfNeeded()
tid.generate(); // timestamp-based randomization + uniquification
LLAssetID new_asset_id = tid.makeAssetID(gAgent.getSecureSessionID());
std::string res_desc = buildMaterialDescription();
- U32 next_owner_perm = LLFloaterPerms::getNextOwnerPerms("Uploads");
+ U32 next_owner_perm = LLFloaterPerms::getNextOwnerPerms("Materials");
LLUUID parent = gInventory.findUserDefinedCategoryUUIDForType(LLFolderType::FT_MATERIAL);
const U8 subtype = NO_INV_SUBTYPE; // TODO maybe use AT_SETTINGS and LLSettingsType::ST_MATERIAL ?
@@ -948,11 +948,11 @@ bool LLMaterialEditor::saveIfNeeded()
{
// create_inventory_item doesn't allow presetting some permissions, fix it now
LLPermissions perm = item->getPermissions();
- if (perm.getMaskEveryone() != LLFloaterPerms::getEveryonePerms("Uploads")
- || perm.getMaskGroup() != LLFloaterPerms::getGroupPerms("Uploads"))
+ if (perm.getMaskEveryone() != LLFloaterPerms::getEveryonePerms("Materials")
+ || perm.getMaskGroup() != LLFloaterPerms::getGroupPerms("Materials"))
{
- perm.setMaskEveryone(LLFloaterPerms::getEveryonePerms("Uploads"));
- perm.setMaskGroup(LLFloaterPerms::getGroupPerms("Uploads"));
+ perm.setMaskEveryone(LLFloaterPerms::getEveryonePerms("Materials"));
+ perm.setMaskGroup(LLFloaterPerms::getGroupPerms("Materials"));
item->setPermissions(perm);