@@ -4290,6 +4290,7 @@ void LLPanelFace::onCopyTexture()
4290
4290
te_data[" te" ][" bumpmap" ] = tep->getBumpmap ();
4291
4291
te_data[" te" ][" bumpshiny" ] = tep->getBumpShiny ();
4292
4292
te_data[" te" ][" bumpfullbright" ] = tep->getBumpShinyFullbright ();
4293
+ te_data[" te" ][" texgen" ] = tep->getTexGen ();
4293
4294
te_data[" te" ][" pbr" ] = objectp->getRenderMaterialID (te);
4294
4295
if (tep->getGLTFMaterialOverride () != nullptr )
4295
4296
{
@@ -4685,6 +4686,11 @@ void LLPanelFace::onPasteTexture(LLViewerObject* objectp, S32 te)
4685
4686
{
4686
4687
objectp->setTEBumpShinyFullbright (te, (U8)te_data[" te" ][" bumpfullbright" ].asInteger ());
4687
4688
}
4689
+ if (te_data[" te" ].has (" texgen" ))
4690
+ {
4691
+ objectp->setTETexGen (te, (U8)te_data[" te" ][" texgen" ].asInteger ());
4692
+ }
4693
+
4688
4694
// PBR/GLTF
4689
4695
if (te_data[" te" ].has (" pbr" ))
4690
4696
{
@@ -4796,11 +4802,11 @@ void LLPanelFace::onPasteTexture(LLViewerObject* objectp, S32 te)
4796
4802
LLSelectedTEMaterial::setSpecularOffsetX (this , (F32)te_data[" material" ][" SpecOffX" ].asReal (), te, object_id);
4797
4803
LLSelectedTEMaterial::setSpecularOffsetY (this , (F32)te_data[" material" ][" SpecOffY" ].asReal (), te, object_id);
4798
4804
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" ]);
4800
4806
LLSelectedTEMaterial::setSpecularLightColor (this , spec_color, te);
4801
4807
LLSelectedTEMaterial::setSpecularLightExponent (this , (U8)te_data[" material" ][" SpecExp" ].asInteger (), te, object_id);
4802
4808
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);
4804
4810
if (te_data.has (" te" ) && te_data[" te" ].has (" shiny" ))
4805
4811
{
4806
4812
objectp->setTEShiny (te, (U8)te_data[" te" ][" shiny" ].asInteger ());
0 commit comments