aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/primbackup.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-10-08 23:02:24 -0700
committerMcCabe Maxsted2010-10-08 23:02:24 -0700
commitb7106c7cb1a6132a907918c36eb1f01f170fb486 (patch)
tree228a597bc1bbec54e0032823842f1290d13b7f07 /linden/indra/newview/primbackup.cpp
parentMerge branch 'weekly-next' into weekly (diff)
downloadmeta-impy-b7106c7cb1a6132a907918c36eb1f01f170fb486.zip
meta-impy-b7106c7cb1a6132a907918c36eb1f01f170fb486.tar.gz
meta-impy-b7106c7cb1a6132a907918c36eb1f01f170fb486.tar.bz2
meta-impy-b7106c7cb1a6132a907918c36eb1f01f170fb486.tar.xz
Revert "Allow export of megaprims from SL by people who've given us permission" until we can come to a firm decision on this.
This reverts commit dfeb8fe3f4110f7e571ababf35401ea6a5fd41d5.
Diffstat (limited to 'linden/indra/newview/primbackup.cpp')
-rw-r--r--linden/indra/newview/primbackup.cpp31
1 files changed, 3 insertions, 28 deletions
diff --git a/linden/indra/newview/primbackup.cpp b/linden/indra/newview/primbackup.cpp
index adbc4de..63043f0 100644
--- a/linden/indra/newview/primbackup.cpp
+++ b/linden/indra/newview/primbackup.cpp
@@ -350,34 +350,6 @@ void primbackup::pre_export_object()
350bool primbackup::check_perms( LLSelectNode* node ) 350bool primbackup::check_perms( LLSelectNode* node )
351{ 351{
352 LLPermissions *perms = node->mPermissions; 352 LLPermissions *perms = node->mPermissions;
353 // We check to see if there are megaprims in SL we can export.
354 // Cludgy, but the only option considering LL's TPV policy.
355 if (gHippoGridManager->getConnectedGrid()->isSecondLife())
356 {
357 bool is_sl_megaprim = false;
358 for (int i = 0; i < 3; ++i)
359 {
360 if (node->getObject()->getScale().mV[i] > 10)
361 {
362 is_sl_megaprim = true;
363 break;
364 }
365 }
366
367 if (is_sl_megaprim)
368 {
369 // The following avatars in Second Life have given Imprudence permission for their full-perm
370 // megaprims to be exported even if that means changing the creator from themselves:
371 // McCabe_Maxsted ("3fc0478f-1c40-48a1-b8a7-3b7062efeda1");
372 // Gene_Replacement ("adfacb56-390b-4fdc-9216-3494f1c59862");
373 return ((perms->getCreator() == LLUUID("3fc0478f-1c40-48a1-b8a7-3b7062efeda1") ||
374 perms->getCreator() == LLUUID("adfacb56-390b-4fdc-9216-3494f1c59862") ||
375 perms->getCreator() == gAgent.getID()) &&
376 perms->getOwner() == gAgent.getID() &&
377 (PERM_ITEM_UNRESTRICTED & perms->getMaskOwner()) == PERM_ITEM_UNRESTRICTED);
378 }
379 }
380
381 return (gAgent.getID() == perms->getOwner() && 353 return (gAgent.getID() == perms->getOwner() &&
382 gAgent.getID() == perms->getCreator() && 354 gAgent.getID() == perms->getCreator() &&
383 (PERM_ITEM_UNRESTRICTED & 355 (PERM_ITEM_UNRESTRICTED &
@@ -1139,4 +1111,7 @@ void primbackup::upload_next_asset()
1139 "Uploaded texture", 1111 "Uploaded texture",
1140 NULL, 1112 NULL,
1141 NULL); 1113 NULL);
1114
1115
1142} 1116}
1117