Bit more cleanup in llpanelpermissions.cpp

This commit is contained in:
Lirusaito
2013-02-19 02:37:55 -05:00
committed by Melanie
parent fec3b6c79f
commit 5a8ab82257

View File

@@ -718,8 +718,7 @@ void LLPanelPermissions::refresh()
{ {
LLViewerInventoryItem* item = static_cast<LLViewerInventoryItem*>(i->get()); //getInventoryContents() filters out categories, static_cast. LLViewerInventoryItem* item = static_cast<LLViewerInventoryItem*>(i->get()); //getInventoryContents() filters out categories, static_cast.
const LLPermissions& perm = item->getPermissions(); const LLPermissions& perm = item->getPermissions();
if (!(perm.getMaskBase() & PERM_EXPORT && perm.getMaskEveryone() & PERM_EXPORT)) can_export = perm.getMaskBase() & PERM_EXPORT && perm.getMaskEveryone() & PERM_EXPORT;
can_export = false;
} }
for (U8 i = 0; can_export && i < objectp->getNumTEs(); ++i) // Can the textures be exported? for (U8 i = 0; can_export && i < objectp->getNumTEs(); ++i) // Can the textures be exported?
if (LLTextureEntry* texture = objectp->getTE(i)) if (LLTextureEntry* texture = objectp->getTE(i))