diff options
author | Justin Clark-Casey (justincc) | 2010-07-15 00:15:23 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-07-26 23:34:21 +0100 |
commit | dce7307aa20f49276139708077e329835829d8c2 (patch) | |
tree | 38b49ebfcd9b0d03718825bacb4d12bd0dc3b855 /OpenSim/Region/CoreModules | |
parent | fix bug where prim persistence would fail if media had never been set (diff) | |
download | opensim-SC_OLD-dce7307aa20f49276139708077e329835829d8c2.zip opensim-SC_OLD-dce7307aa20f49276139708077e329835829d8c2.tar.gz opensim-SC_OLD-dce7307aa20f49276139708077e329835829d8c2.tar.bz2 opensim-SC_OLD-dce7307aa20f49276139708077e329835829d8c2.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); |