summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llprimtexturelist.cpp
diff options
context:
space:
mode:
authorvyacheslavsproductengine <vyacheslavsproductengine@lindenlab.com>2015-05-19 22:54:54 +0400
committervyacheslavsproductengine <vyacheslavsproductengine@lindenlab.com>2015-05-19 22:54:54 +0400
commitcdbc220a9748959cb3b33e38f1ece1b6e145f594 (patch)
tree5689aef3d72cc9c15c58c4c3e97d83a23f19a411 /indra/llprimitive/llprimtexturelist.cpp
parent193a298266c251a6be153cf37f5b2d2aa8513101 (diff)
parent0a333e9a039288969b3ce207772fee8cbeb2ca83 (diff)
Слияние
Diffstat (limited to 'indra/llprimitive/llprimtexturelist.cpp')
-rwxr-xr-xindra/llprimitive/llprimtexturelist.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/llprimitive/llprimtexturelist.cpp b/indra/llprimitive/llprimtexturelist.cpp
index f4f08248b8..6aae2f97c6 100755
--- a/indra/llprimitive/llprimtexturelist.cpp
+++ b/indra/llprimitive/llprimtexturelist.cpp
@@ -368,11 +368,18 @@ S32 LLPrimTextureList::setMaterialID(const U8 index, const LLMaterialID& pMateri
return TEM_CHANGE_NONE;
}
-S32 LLPrimTextureList::setMaterialParams(const U8 index, const LLMaterialPtr pMaterialParams)
+S32 LLPrimTextureList::setMaterialParams(const U8 index, const LLMaterialPtr pMaterialParams, bool isInitFromServer)
{
if (index < mEntryList.size())
{
- return mEntryList[index]->setMaterialParams(pMaterialParams);
+ if (!isInitFromServer && mEntryList[index]->isMatParamsInitFromServer())
+ {
+ return TEM_CHANGE_NONE;
+ }
+ else
+ {
+ return mEntryList[index]->setMaterialParams(pMaterialParams);
+ }
}
return TEM_CHANGE_NONE;
}