add LSL_Integer osClearObjectAnimations() to remove all animations on a prim, returning the number it had; some clean on sending

This commit is contained in:
UbitUmarov
2020-03-03 23:21:05 +00:00
parent 6684c35bb0
commit 248d56d3ad
6 changed files with 31 additions and 22 deletions

View File

@@ -5774,5 +5774,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return Vector3.Zero;
return target.StandOffset;
}
public LSL_Integer osClearObjectAnimations()
{
return m_host.ClearObjectAnimations();
}
}
}

View File

@@ -568,5 +568,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void osSetLinkStandTarget(LSL_Integer linkNumber, vector v);
vector osGetStandTarget();
vector osGetLinkStandTarget(LSL_Integer linkNumber);
LSL_Integer osClearObjectAnimations();
}
}

View File

@@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
public partial class ScriptBaseClass
{
// SCRIPTS CONSTANTS
public static readonly LSLInteger OS_APIVERSION = 11;
public static readonly LSLInteger OS_APIVERSION = 12;
public static readonly LSLInteger TRUE = 1;
public static readonly LSLInteger FALSE = 0;

View File

@@ -1461,5 +1461,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
{
return m_OSSL_Functions.osGetLinkStandTarget(linkNumber);
}
public LSL_Integer osClearObjectAnimations()
{
return m_OSSL_Functions.osClearObjectAnimations();
}
}
}