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
This commit is contained in:
Justin Clark-Casey (justincc)
2010-07-15 00:15:23 +01:00
parent fc76ce0f46
commit dce7307aa2
3 changed files with 19 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ namespace OpenSim.Region.CoreModules.Media.Moap
CheckFaceParam(part, face);
if (null == part.Shape.Media)
part.Shape.Media = new List<MediaEntry>(part.GetNumberOfSides());
part.Shape.Media = new List<MediaEntry>(new MediaEntry[part.GetNumberOfSides()]);
part.Shape.Media[face] = me;
UpdateMediaUrl(part);