diff options
author | Justin Clark-Casey (justincc) | 2010-07-15 00:15:23 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-07-15 00:15:23 +0100 |
commit | e74e591e0b2196bcf58e17f604e2d8d4819c3917 (patch) | |
tree | 0da7712d33b4a3e03d27126965bd5c4275be764b /OpenSim/Region/CoreModules | |
parent | fix bug where prim persistence would fail if media had never been set (diff) | |
download | opensim-SC-e74e591e0b2196bcf58e17f604e2d8d4819c3917.zip opensim-SC-e74e591e0b2196bcf58e17f604e2d8d4819c3917.tar.gz opensim-SC-e74e591e0b2196bcf58e17f604e2d8d4819c3917.tar.bz2 opensim-SC-e74e591e0b2196bcf58e17f604e2d8d4819c3917.tar.xz |
properly expose prim media LSL functions to scripts
scripts using these functions should now compile but I don't know how well the methods themselves work yet
llSetPrimMedia(), at least, appears to have problems when a current url is set for a face that doesn't yet have a texture
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs index 3c546c4..4bbac6e 100644 --- a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs +++ b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs | |||
@@ -186,7 +186,7 @@ namespace OpenSim.Region.CoreModules.Media.Moap | |||
186 | CheckFaceParam(part, face); | 186 | CheckFaceParam(part, face); |
187 | 187 | ||
188 | if (null == part.Shape.Media) | 188 | if (null == part.Shape.Media) |
189 | part.Shape.Media = new List<MediaEntry>(part.GetNumberOfSides()); | 189 | part.Shape.Media = new List<MediaEntry>(new MediaEntry[part.GetNumberOfSides()]); |
190 | 190 | ||
191 | part.Shape.Media[face] = me; | 191 | part.Shape.Media[face] = me; |
192 | UpdateMediaUrl(part); | 192 | UpdateMediaUrl(part); |