MAINT-8634 Hide texture UUIDs for non-gods

meow-7.2.2
maxim_productengine 2018-05-24 18:14:54 +03:00
parent a0d24f18b7
commit 5b943c698a
1 changed files with 12 additions and 4 deletions

View File

@ -8539,6 +8539,8 @@ void LLVOAvatar::dumpArchetypeXML(const std::string& prefix, bool group_by_weara
apr_file_printf( file, "<linden_genepool version=\"1.0\">\n" );
apr_file_printf( file, "\n\t<archetype name=\"???\">\n" );
bool agent_is_godlike = gAgent.isGodlikeWithoutAdminMenuFakery();
if (group_by_wearables)
{
for (S32 type = LLWearableType::WT_SHAPE; type < LLWearableType::WT_COUNT; type++)
@ -8564,8 +8566,11 @@ void LLVOAvatar::dumpArchetypeXML(const std::string& prefix, bool group_by_weara
LLViewerTexture* te_image = getImage((ETextureIndex)te, 0);
if( te_image )
{
std::string uuid_str;
te_image->getID().toString( uuid_str );
std::string uuid_str = LLUUID().asString();
if (agent_is_godlike)
{
te_image->getID().toString(uuid_str);
}
apr_file_printf( file, "\t\t<texture te=\"%i\" uuid=\"%s\"/>\n", te, uuid_str.c_str());
}
}
@ -8587,8 +8592,11 @@ void LLVOAvatar::dumpArchetypeXML(const std::string& prefix, bool group_by_weara
LLViewerTexture* te_image = getImage((ETextureIndex)te, 0);
if( te_image )
{
std::string uuid_str;
te_image->getID().toString( uuid_str );
std::string uuid_str = LLUUID().asString();
if (agent_is_godlike)
{
te_image->getID().toString(uuid_str);
}
apr_file_printf( file, "\t\t<texture te=\"%i\" uuid=\"%s\"/>\n", te, uuid_str.c_str());
}
}