summaryrefslogtreecommitdiff
path: root/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llselectmgr.cpp')
-rw-r--r--indra/newview/llselectmgr.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp
index fa9604ef9d..ee10872a16 100644
--- a/indra/newview/llselectmgr.cpp
+++ b/indra/newview/llselectmgr.cpp
@@ -2000,10 +2000,14 @@ void LLSelectMgr::selectionSetGLTFMaterial(const LLUUID& mat_id)
{
object->setHasRenderMaterialParams(false);
}
- else
+ else if (object->hasRenderMaterialParams())
{
object->parameterChanged(LLNetworkData::PARAMS_RENDER_MATERIAL, true);
}
+ else
+ {
+ object->setHasRenderMaterialParams(true);
+ }
}
if (!mItem)
@@ -2262,10 +2266,14 @@ void LLSelectMgr::selectionRevertGLTFMaterials()
{
object->setHasRenderMaterialParams(false);
}
- else
+ else if (object->hasRenderMaterialParams())
{
object->parameterChanged(LLNetworkData::PARAMS_RENDER_MATERIAL, true);
}
+ else
+ {
+ object->setHasRenderMaterialParams(true);
+ }
}
object->sendTEUpdate();