summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerobject.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2007-01-04 02:04:29 +0000
committerJosh Bell <josh@lindenlab.com>2007-01-04 02:04:29 +0000
commitd60f16540dba5616cd8260046b44ebc2a1047065 (patch)
treeab241efaf58ba4eeb1916763cef337a04bc15d64 /indra/newview/llviewerobject.cpp
parent0434d35c160bcd0d78b8f4e795a62155f50a6fb8 (diff)
svn merge svn+ssh://svn.lindenlab.com/svn/linden/release@56429 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance@56431
This turned up the following "lost" changes: llapp.cpp (from maintenance r55371) - SIGPIPE fix, possibly llfontgl.cpp (from maintenance r50207) - whitespace only inventorybridge.cpp (property - non-executable) skins/xui/*/* (from maintenance r55380) - XML processing instruction went AWOL
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r--indra/newview/llviewerobject.cpp44
1 files changed, 12 insertions, 32 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index 2d97c6f2a4..7db94eb972 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -49,7 +49,6 @@
#include "llviewercamera.h"
#include "llviewerimagelist.h"
#include "llviewerinventory.h"
-#include "llviewermedialist.h"
#include "llviewerobjectlist.h"
#include "llviewerparceloverlay.h"
#include "llviewerpartsource.h"
@@ -3266,16 +3265,8 @@ void LLViewerObject::setMediaType(U8 media_type)
else if (mMedia->mMediaType != media_type)
{
mMedia->mMediaType = media_type;
- if (gMediaList)
- {
- // we're using web pages on prims
- gMediaList->updatedMediaURL(this);
- }
- if (mDrawable.notNull())
- {
- // move this object's faces into LLDrawPoolMedia
- gPipeline.markTextured(mDrawable);
- }
+
+ // TODO: update materials with new image
}
}
@@ -3300,30 +3291,15 @@ void LLViewerObject::setMediaURL(const LLString& media_url)
mMedia = new LLViewerObjectMedia;
mMedia->mMediaURL = media_url;
mMedia->mPassedWhitelist = FALSE;
- if (gMediaList)
- {
- gMediaList->addedMediaURL(this);
- }
- if (mDrawable.notNull())
- {
- // move this object's faces into LLDrawPoolMedia
- gPipeline.markTextured(mDrawable);
- }
+
+ // TODO: update materials with new image
}
else if (mMedia->mMediaURL != media_url)
{
mMedia->mMediaURL = media_url;
mMedia->mPassedWhitelist = FALSE;
- if (gMediaList)
- {
- // we're using web pages on prims
- gMediaList->updatedMediaURL(this);
- }
- if (mDrawable.notNull())
- {
- // move this object's faces into LLDrawPoolMedia
- gPipeline.markTextured(mDrawable);
- }
+
+ // TODO: update materials with new image
}
}
@@ -4137,6 +4113,12 @@ void LLViewerObject::setAttachedSound(const LLUUID &audio_uuid, const LLUUID& ow
}
}
+ if ( mAudioSourcep )
+ {
+ gAudiop->cleanupAudioSource(mAudioSourcep);
+ mAudioSourcep = NULL;
+ }
+
getAudioSource(owner_id);
if (mAudioSourcep)
@@ -4153,8 +4135,6 @@ void LLViewerObject::setAttachedSound(const LLUUID &audio_uuid, const LLUUID& ow
LLAudioSource *LLViewerObject::getAudioSource(const LLUUID& owner_id)
{
- LLMemType mt(LLMemType::MTYPE_OBJECT);
-
if (!mAudioSourcep)
{
// Arbitrary low gain for a sound that's not playing.