aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 3f719fb..4054369 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -42,6 +42,7 @@ using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase;
42 42
43namespace OpenSim.Region.ScriptEngine.Common 43namespace OpenSim.Region.ScriptEngine.Common
44{ 44{
45
45 /// <summary> 46 /// <summary>
46 /// Contains all LSL ll-functions. This class will be in Default AppDomain. 47 /// Contains all LSL ll-functions. This class will be in Default AppDomain.
47 /// </summary> 48 /// </summary>
@@ -2005,16 +2006,24 @@ namespace OpenSim.Region.ScriptEngine.Common
2005 return String.Empty; 2006 return String.Empty;
2006 } 2007 }
2007 2008
2009
2010
2008 public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) 2011 public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)
2009 { 2012 {
2010 Primitive.TextureAnimation pTexAnim = new Primitive.TextureAnimation(); 2013 Primitive.TextureAnimation pTexAnim = new Primitive.TextureAnimation();
2011 pTexAnim.Flags = (uint)mode; 2014 pTexAnim.Flags =(uint) mode;
2015
2016 //ALL_SIDES
2017 if (face == -1)
2018 face = 255;
2019
2012 pTexAnim.Face = (uint)face; 2020 pTexAnim.Face = (uint)face;
2013 pTexAnim.Length = (float)length; 2021 pTexAnim.Length = (float)length;
2014 pTexAnim.Rate = (float)rate; 2022 pTexAnim.Rate = (float)rate;
2015 pTexAnim.SizeX = (uint)sizex; 2023 pTexAnim.SizeX = (uint)sizex;
2016 pTexAnim.SizeY = (uint)sizey; 2024 pTexAnim.SizeY = (uint)sizey;
2017 pTexAnim.Start = (float)start; 2025 pTexAnim.Start = (float)start;
2026
2018 m_host.AddTextureAnimation(pTexAnim); 2027 m_host.AddTextureAnimation(pTexAnim);
2019 m_host.SendFullUpdateToAllClients(); 2028 m_host.SendFullUpdateToAllClients();
2020 } 2029 }