MAINT-1455 FIX Media Texture not visually updated correctly
Reviewed by me. (Bao created)meow-7.2.2
parent
173364ed5d
commit
e4230e640a
|
|
@ -4205,7 +4205,7 @@ S32 LLViewerObject::setTETextureCore(const U8 te, const LLUUID& uuid, LLHost hos
|
|||
return retval;
|
||||
}
|
||||
|
||||
|
||||
//virtual
|
||||
void LLViewerObject::changeTEImage(S32 index, LLViewerTexture* new_image)
|
||||
{
|
||||
if(index < 0 || index >= getNumTEs())
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ public:
|
|||
/*virtual*/ S32 setTEGlow(const U8 te, const F32 glow);
|
||||
/*virtual*/ BOOL setMaterial(const U8 material);
|
||||
virtual void setTEImage(const U8 te, LLViewerTexture *imagep); // Not derived from LLPrimitive
|
||||
void changeTEImage(S32 index, LLViewerTexture* new_image) ;
|
||||
virtual void changeTEImage(S32 index, LLViewerTexture* new_image) ;
|
||||
LLViewerTexture *getTEImage(const U8 te) const;
|
||||
|
||||
void fitFaceTexture(const U8 face);
|
||||
|
|
|
|||
|
|
@ -1842,6 +1842,18 @@ void LLVOVolume::setNumTEs(const U8 num_tes)
|
|||
return ;
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLVOVolume::changeTEImage(S32 index, LLViewerTexture* imagep)
|
||||
{
|
||||
BOOL changed = (mTEImages[index] != imagep);
|
||||
LLViewerObject::changeTEImage(index, imagep);
|
||||
if (changed)
|
||||
{
|
||||
gPipeline.markTextured(mDrawable);
|
||||
mFaceMappingChanged = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
void LLVOVolume::setTEImage(const U8 te, LLViewerTexture *imagep)
|
||||
{
|
||||
BOOL changed = (mTEImages[te] != imagep);
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ public:
|
|||
|
||||
/*virtual*/ void setScale(const LLVector3 &scale, BOOL damped);
|
||||
|
||||
/*virtual*/ void changeTEImage(S32 index, LLViewerTexture* new_image) ;
|
||||
/*virtual*/ void setNumTEs(const U8 num_tes);
|
||||
/*virtual*/ void setTEImage(const U8 te, LLViewerTexture *imagep);
|
||||
/*virtual*/ S32 setTETexture(const U8 te, const LLUUID &uuid);
|
||||
|
|
|
|||
Loading…
Reference in New Issue