aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-07-12 21:43:36 +0100
committerJustin Clark-Casey (justincc)2010-07-26 23:34:20 +0100
commitd1a879927ccc97e90f19d916a6a0e579dd7b4a56 (patch)
tree8212fa7e6b197fdc3a40f1e20e46afdf639ef4e6
parentfix problem persisting when only one face had a media texture (diff)
downloadopensim-SC_OLD-d1a879927ccc97e90f19d916a6a0e579dd7b4a56.zip
opensim-SC_OLD-d1a879927ccc97e90f19d916a6a0e579dd7b4a56.tar.gz
opensim-SC_OLD-d1a879927ccc97e90f19d916a6a0e579dd7b4a56.tar.bz2
opensim-SC_OLD-d1a879927ccc97e90f19d916a6a0e579dd7b4a56.tar.xz
fix issue with GetMediaEntry if the face requested wasn't set to a media texture
-rw-r--r--OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
index 93a1ae8..43953a7 100644
--- a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
+++ b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
@@ -112,7 +112,8 @@ namespace OpenSim.Region.CoreModules.Media.Moap
112 else 112 else
113 { 113 {
114 // TODO: Really need a proper copy constructor down in libopenmetaverse 114 // TODO: Really need a proper copy constructor down in libopenmetaverse
115 return MediaEntry.FromOSD(media[face].GetOSD()); 115 MediaEntry me = media[face];
116 return (null == me ? null : MediaEntry.FromOSD(me.GetOSD()));
116 } 117 }
117 } 118 }
118 119