Bit more cleanup in llpanelpermissions.cpp
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user