Skip to content

Commit 7e9ab0b

Browse files
committed
Merge branch 'DRTVWR-601' of github.com:secondlife/viewer into DRTVWR-601
2 parents fefdd5a + 9075989 commit 7e9ab0b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

indra/newview/llpanelface.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4290,6 +4290,7 @@ void LLPanelFace::onCopyTexture()
42904290
te_data["te"]["bumpmap"] = tep->getBumpmap();
42914291
te_data["te"]["bumpshiny"] = tep->getBumpShiny();
42924292
te_data["te"]["bumpfullbright"] = tep->getBumpShinyFullbright();
4293+
te_data["te"]["texgen"] = tep->getTexGen();
42934294
te_data["te"]["pbr"] = objectp->getRenderMaterialID(te);
42944295
if (tep->getGLTFMaterialOverride() != nullptr)
42954296
{
@@ -4685,6 +4686,11 @@ void LLPanelFace::onPasteTexture(LLViewerObject* objectp, S32 te)
46854686
{
46864687
objectp->setTEBumpShinyFullbright(te, (U8)te_data["te"]["bumpfullbright"].asInteger());
46874688
}
4689+
if (te_data["te"].has("texgen"))
4690+
{
4691+
objectp->setTETexGen(te, (U8)te_data["te"]["texgen"].asInteger());
4692+
}
4693+
46884694
// PBR/GLTF
46894695
if (te_data["te"].has("pbr"))
46904696
{
@@ -4796,11 +4802,11 @@ void LLPanelFace::onPasteTexture(LLViewerObject* objectp, S32 te)
47964802
LLSelectedTEMaterial::setSpecularOffsetX(this, (F32)te_data["material"]["SpecOffX"].asReal(), te, object_id);
47974803
LLSelectedTEMaterial::setSpecularOffsetY(this, (F32)te_data["material"]["SpecOffY"].asReal(), te, object_id);
47984804
LLSelectedTEMaterial::setSpecularRotation(this, (F32)te_data["material"]["SpecRot"].asReal(), te, object_id);
4799-
LLColor4 spec_color(te_data["material"]["SpecColor"]);
4805+
LLColor4U spec_color(te_data["material"]["SpecColor"]);
48004806
LLSelectedTEMaterial::setSpecularLightColor(this, spec_color, te);
48014807
LLSelectedTEMaterial::setSpecularLightExponent(this, (U8)te_data["material"]["SpecExp"].asInteger(), te, object_id);
48024808
LLSelectedTEMaterial::setEnvironmentIntensity(this, (U8)te_data["material"]["EnvIntensity"].asInteger(), te, object_id);
4803-
LLSelectedTEMaterial::setDiffuseAlphaMode(this, (U8)te_data["material"]["SpecRot"].asInteger(), te, object_id);
4809+
LLSelectedTEMaterial::setDiffuseAlphaMode(this, (U8)te_data["material"]["DiffuseAlphaMode"].asInteger(), te, object_id);
48044810
if (te_data.has("te") && te_data["te"].has("shiny"))
48054811
{
48064812
objectp->setTEShiny(te, (U8)te_data["te"]["shiny"].asInteger());

0 commit comments

Comments
 (0)