diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index fb99ffef09c056b3973e1443b480cf1de956bc8a..8f8f1b47639482336a8cc324aeb6c62e8ad7f64e 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -3161,7 +3161,7 @@ void LLPanelFace::pasteFace(LLViewerObject* objectp, S32 te)
                 LLColor4 spec_color(te_data["material"]["SpecColor"]);
                 LLSelectedTEMaterial::setSpecularLightColor(this, spec_color, te);
                 LLSelectedTEMaterial::setSpecularLightExponent(this, (U8)te_data["material"]["SpecExp"].asInteger(), te, object_id);
-                LLSelectedTEMaterial::setEnvironmentIntensity(this, (U8)te_data["material"]["EnvIntensity"].asInteger(), te), object_id;
+                LLSelectedTEMaterial::setEnvironmentIntensity(this, (U8)te_data["material"]["EnvIntensity"].asInteger(), te, object_id);
                 LLSelectedTEMaterial::setDiffuseAlphaMode(this, (U8)te_data["material"]["SpecRot"].asInteger(), te, object_id);
                 if (te_data.has("shiny"))
                 {