aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-07-12 22:27:11 +0100
committerJustin Clark-Casey (justincc)2010-07-26 23:34:20 +0100
commiteb5e39d6efed2516883c729eded38454d05aec68 (patch)
treef0cf0afbbbe5ac740872e6d6bc5a61427b2d0197 /OpenSim/Region/CoreModules
parentimplement llClearPrimMedia() (diff)
downloadopensim-SC_OLD-eb5e39d6efed2516883c729eded38454d05aec68.zip
opensim-SC_OLD-eb5e39d6efed2516883c729eded38454d05aec68.tar.gz
opensim-SC_OLD-eb5e39d6efed2516883c729eded38454d05aec68.tar.bz2
opensim-SC_OLD-eb5e39d6efed2516883c729eded38454d05aec68.tar.xz
Fire CHANGED_MEDIA event if a media texture is set or cleared
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
index 8699800..8bccab4 100644
--- a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
+++ b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
@@ -127,6 +127,7 @@ namespace OpenSim.Region.CoreModules.Media.Moap
127 part.Shape.Media[face] = me; 127 part.Shape.Media[face] = me;
128 UpdateMediaUrl(part); 128 UpdateMediaUrl(part);
129 part.ScheduleFullUpdate(); 129 part.ScheduleFullUpdate();
130 part.TriggerScriptChangedEvent(Changed.MEDIA);
130 } 131 }
131 132
132 public void ClearMediaEntry(SceneObjectPart part, int face) 133 public void ClearMediaEntry(SceneObjectPart part, int face)
@@ -233,6 +234,8 @@ namespace OpenSim.Region.CoreModules.Media.Moap
233 // Arguably, we could avoid sending a full update to the avatar that just changed the texture. 234 // Arguably, we could avoid sending a full update to the avatar that just changed the texture.
234 part.ScheduleFullUpdate(); 235 part.ScheduleFullUpdate();
235 236
237 part.TriggerScriptChangedEvent(Changed.MEDIA);
238
236 return string.Empty; 239 return string.Empty;
237 } 240 }
238 241
@@ -277,6 +280,8 @@ namespace OpenSim.Region.CoreModules.Media.Moap
277 280
278 part.ScheduleFullUpdate(); 281 part.ScheduleFullUpdate();
279 282
283 part.TriggerScriptChangedEvent(Changed.MEDIA);
284
280 return string.Empty; 285 return string.Empty;
281 } 286 }
282 287