mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user