Cherry pick of https://bitbucket.org/lindenlab/mesh-development/changeset/9cea44ebea3b by don, to fix old viewer crashes in mesh regions

meow-7.2.2
Brad Payne (Vir Linden) 2011-07-19 15:19:07 -04:00
parent 3ce04f335e
commit 8b7e33ad36
2 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,7 @@ public:
PARAMS_LIGHT = 0x20,
PARAMS_SCULPT = 0x30,
PARAMS_LIGHT_IMAGE = 0x40,
PARAMS_MESH = 0x50,
};
public:

View File

@ -4877,6 +4877,10 @@ void LLViewerObject::adjustAudioGain(const F32 gain)
bool LLViewerObject::unpackParameterEntry(U16 param_type, LLDataPacker *dp)
{
if (LLNetworkData::PARAMS_MESH == param_type)
{
param_type = LLNetworkData::PARAMS_SCULPT;
}
ExtraParameter* param = getExtraParameterEntryCreate(param_type);
if (param)
{