diff options
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
| -rw-r--r-- | indra/newview/llviewerobject.cpp | 14 | 
1 files changed, 11 insertions, 3 deletions
| diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 4ef1853095..0e1553c421 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -63,6 +63,7 @@  #include "llface.h"  #include "llfloaterproperties.h"  #include "llfollowcam.h" +#include "llhudtext.h"  #include "llselectmgr.h"  #include "llrendersphere.h"  #include "lltooldraganddrop.h" @@ -1094,7 +1095,7 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,  					// alpha was flipped so that it zero encoded better  					coloru.mV[3] = 255 - coloru.mV[3];  					mText->setColor(LLColor4(coloru)); -					mText->setStringUTF8(temp_string); +					mText->setString(temp_string);  					if (mDrawable.notNull())  					{ @@ -1486,7 +1487,7 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,  					dp->unpackBinaryDataFixed(coloru.mV, 4, "Color");  					coloru.mV[3] = 255 - coloru.mV[3];  					mText->setColor(LLColor4(coloru)); -					mText->setStringUTF8(temp_string); +					mText->setString(temp_string);  					setChanged(TEXTURE);  				} @@ -4152,7 +4153,7 @@ void LLViewerObject::setDebugText(const std::string &utf8text)  		mText->setOnHUDAttachment(isHUDAttachment());  	}  	mText->setColor(LLColor4::white); -	mText->setStringUTF8(utf8text); +	mText->setString(utf8text);  	mText->setZCompare(FALSE);  	mText->setDoFade(FALSE);  	updateText(); @@ -4447,6 +4448,13 @@ void LLViewerObject::setAttachedSound(const LLUUID &audio_uuid, const LLUUID& ow  		mAudioSourcep = NULL;  	} +	if (mAudioSourcep && mAudioSourcep->isMuted() && +	    mAudioSourcep->getCurrentData() && mAudioSourcep->getCurrentData()->getID() == audio_uuid) +	{ +		//llinfos << "Already having this sound as muted sound, ignoring" << llendl; +		return; +	} +  	getAudioSource(owner_id);  	if (mAudioSourcep) | 
