aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs41
-rw-r--r--bin/config-include/osslEnable.ini4
2 files changed, 3 insertions, 42 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index bb4bab0..95d7a7a 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -1936,45 +1936,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1936 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted) 1936 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1937 return; 1937 return;
1938 1938
1939 Primitive.TextureEntry tex = part.Shape.Textures;
1940 int nsides = GetNumberOfSides(part);
1941 Color4 texcolor;
1942
1943 if (face >= 0 && face < nsides)
1944 {
1945 texcolor = tex.CreateFace((uint)face).RGBA;
1946 texcolor.R = Util.Clip((float)color.x, 0.0f, 1.0f);
1947 texcolor.G = Util.Clip((float)color.y, 0.0f, 1.0f);
1948 texcolor.B = Util.Clip((float)color.z, 0.0f, 1.0f);
1949 tex.FaceTextures[face].RGBA = texcolor;
1950 part.UpdateTextureEntry(tex);
1951 return;
1952 }
1953 else if (face == ScriptBaseClass.ALL_SIDES)
1954 {
1955 for (uint i = 0; i < nsides; i++)
1956 {
1957 if (tex.FaceTextures[i] != null)
1958 {
1959 texcolor = tex.FaceTextures[i].RGBA;
1960 texcolor.R = Util.Clip((float)color.x, 0.0f, 1.0f);
1961 texcolor.G = Util.Clip((float)color.y, 0.0f, 1.0f);
1962 texcolor.B = Util.Clip((float)color.z, 0.0f, 1.0f);
1963 tex.FaceTextures[i].RGBA = texcolor;
1964 }
1965 texcolor = tex.DefaultTexture.RGBA;
1966 texcolor.R = Util.Clip((float)color.x, 0.0f, 1.0f);
1967 texcolor.G = Util.Clip((float)color.y, 0.0f, 1.0f);
1968 texcolor.B = Util.Clip((float)color.z, 0.0f, 1.0f);
1969 tex.DefaultTexture.RGBA = texcolor;
1970 }
1971 part.UpdateTextureEntry(tex);
1972 return;
1973 }
1974
1975 if (face == ScriptBaseClass.ALL_SIDES)
1976 face = SceneObjectPart.ALL_SIDES;
1977
1978 m_host.SetFaceColorAlpha(face, color, null); 1939 m_host.SetFaceColorAlpha(face, color, null);
1979 } 1940 }
1980 1941
@@ -3577,7 +3538,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3577 public void doObjectRez(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param, bool atRoot) 3538 public void doObjectRez(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param, bool atRoot)
3578 { 3539 {
3579 m_host.AddScriptLPS(1); 3540 m_host.AddScriptLPS(1);
3580 if (Double.IsNaN(rot.x) || Double.IsNaN(rot.y) || Double.IsNaN(rot.z) || Double.IsNaN(rot.s)) 3541 if (string.IsNullOrEmpty(inventory) || Double.IsNaN(rot.x) || Double.IsNaN(rot.y) || Double.IsNaN(rot.z) || Double.IsNaN(rot.s))
3581 return; 3542 return;
3582 3543
3583 float dist = (float)llVecDist(llGetPos(), pos); 3544 float dist = (float)llVecDist(llGetPos(), pos);
diff --git a/bin/config-include/osslEnable.ini b/bin/config-include/osslEnable.ini
index a96459a..f127b1f 100644
--- a/bin/config-include/osslEnable.ini
+++ b/bin/config-include/osslEnable.ini
@@ -155,7 +155,6 @@
155 Allow_osForceDropAttachmentAt = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER 155 Allow_osForceDropAttachmentAt = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
156 Allow_osGetLinkPrimitiveParams = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER 156 Allow_osGetLinkPrimitiveParams = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
157 Allow_osGetPhysicsEngineType = true 157 Allow_osGetPhysicsEngineType = true
158 Allow_osGetPrimitiveParams = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
159 Allow_osGetRegionMapTexture = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER 158 Allow_osGetRegionMapTexture = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
160 Allow_osGetScriptEngineName = true 159 Allow_osGetScriptEngineName = true
161 Allow_osGetSimulatorVersion = true 160 Allow_osGetSimulatorVersion = true
@@ -185,7 +184,6 @@
185 Allow_osParcelSubdivide = ESTATE_MANAGER,ESTATE_OWNER 184 Allow_osParcelSubdivide = ESTATE_MANAGER,ESTATE_OWNER
186 Allow_osRegionRestart = ESTATE_MANAGER,ESTATE_OWNER 185 Allow_osRegionRestart = ESTATE_MANAGER,ESTATE_OWNER
187 Allow_osRegionNotice = ESTATE_MANAGER,ESTATE_OWNER 186 Allow_osRegionNotice = ESTATE_MANAGER,ESTATE_OWNER
188 Allow_osSetPrimitiveParams = false
189 Allow_osSetProjectionParams = ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER 187 Allow_osSetProjectionParams = ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
190 Allow_osSetRegionWaterHeight = ESTATE_MANAGER,ESTATE_OWNER 188 Allow_osSetRegionWaterHeight = ESTATE_MANAGER,ESTATE_OWNER
191 Allow_osSetStateEvents = false ; deprecated 189 Allow_osSetStateEvents = false ; deprecated
@@ -250,6 +248,7 @@
250; Allow_osGetLinkNumber = true 248; Allow_osGetLinkNumber = true
251; Allow_osGetMapTexture = true 249; Allow_osGetMapTexture = true
252; Allow_osGetPhysicsEngineName = true 250; Allow_osGetPhysicsEngineName = true
251; Allow_osGetPrimitiveParams = true
253; Allow_osGetRegionSize = true 252; Allow_osGetRegionSize = true
254; Allow_osGetSunParam = true 253; Allow_osGetSunParam = true
255; Allow_osGetTerrainHeight = true 254; Allow_osGetTerrainHeight = true
@@ -275,6 +274,7 @@
275; Allow_osSetPenCap = true 274; Allow_osSetPenCap = true
276; Allow_osSetPenColor = true 275; Allow_osSetPenColor = true
277; Allow_osSetPenSize = true 276; Allow_osSetPenSize = true
277; Allow_osSetPrimitiveParams = true
278; Allow_osSetSoundRadius = true 278; Allow_osSetSoundRadius = true
279; Allow_osStopSound = true 279; Allow_osStopSound = true
280; Allow_osStringSubString = true 280; Allow_osStringSubString = true