aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJeff Ames2008-08-17 02:31:45 +0000
committerJeff Ames2008-08-17 02:31:45 +0000
commit796ccd3d37cb132c4c4f12c791fcdf76513c5cf0 (patch)
treee9cbe45df68bfb99d5a874072483db39eeab277e /OpenSim/Region/ScriptEngine
parentMantis#1971. Thank you kindly, BlueWall for a patch that: (diff)
downloadopensim-SC_OLD-796ccd3d37cb132c4c4f12c791fcdf76513c5cf0.zip
opensim-SC_OLD-796ccd3d37cb132c4c4f12c791fcdf76513c5cf0.tar.gz
opensim-SC_OLD-796ccd3d37cb132c4c4f12c791fcdf76513c5cf0.tar.bz2
opensim-SC_OLD-796ccd3d37cb132c4c4f12c791fcdf76513c5cf0.tar.xz
Update svn properties, minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs64
1 files changed, 32 insertions, 32 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index a1d2446..3e59129 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -1088,32 +1088,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1088 return; 1088 return;
1089 } 1089 }
1090 } 1090 }
1091 1091
1092 public void SetFullBright(SceneObjectPart part, int face, bool bright) 1092 public void SetFullBright(SceneObjectPart part, int face, bool bright)
1093 { 1093 {
1094 LLObject.TextureEntry tex = part.Shape.Textures; 1094 LLObject.TextureEntry tex = part.Shape.Textures;
1095 if (face > -1) 1095 if (face > -1)
1096 { 1096 {
1097 tex.CreateFace((uint) face); 1097 tex.CreateFace((uint) face);
1098 tex.FaceTextures[face].Fullbright = bright; 1098 tex.FaceTextures[face].Fullbright = bright;
1099 part.UpdateTexture(tex); 1099 part.UpdateTexture(tex);
1100 return; 1100 return;
1101 } 1101 }
1102 else if (face == -1) 1102 else if (face == -1)
1103 { 1103 {
1104 for (uint i = 0; i < 32; i++) 1104 for (uint i = 0; i < 32; i++)
1105 { 1105 {
1106 if (tex.FaceTextures[i] != null) 1106 if (tex.FaceTextures[i] != null)
1107 { 1107 {
1108 tex.FaceTextures[i].Fullbright = bright; 1108 tex.FaceTextures[i].Fullbright = bright;
1109 } 1109 }
1110 } 1110 }
1111 tex.DefaultTexture.Fullbright = bright; 1111 tex.DefaultTexture.Fullbright = bright;
1112 part.UpdateTexture(tex); 1112 part.UpdateTexture(tex);
1113 return; 1113 return;
1114 } 1114 }
1115 } 1115 }
1116 1116
1117 public double llGetAlpha(int face) 1117 public double llGetAlpha(int face)
1118 { 1118 {
1119 m_host.AddScriptLPS(1); 1119 m_host.AddScriptLPS(1);
@@ -5523,20 +5523,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5523 SetShiny(part, face, shiny, bump); 5523 SetShiny(part, face, shiny, bump);
5524 5524
5525 break; 5525 break;
5526 case (int)ScriptBaseClass.PRIM_FULLBRIGHT: 5526 case (int)ScriptBaseClass.PRIM_FULLBRIGHT:
5527 if (remain < 2) 5527 if (remain < 2)
5528 return; 5528 return;
5529 face = Convert.ToInt32(rules.Data[idx++]); 5529 face = Convert.ToInt32(rules.Data[idx++]);
5530 string bv = rules.Data[idx++].ToString(); 5530 string bv = rules.Data[idx++].ToString();
5531 bool st; 5531 bool st;
5532 if(bv.Equals("1")) 5532 if (bv.Equals("1"))
5533 st = true; 5533 st = true;
5534 else 5534 else
5535 st = false; 5535 st = false;
5536 5536
5537 SetFullBright(part, face , st); 5537 SetFullBright(part, face , st);
5538 break; 5538 break;
5539 } 5539 }
5540 } 5540 }
5541 } 5541 }
5542 5542