diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 652fa7e..45a5f9a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3653,10 +3653,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3653 | 3653 | ||
3654 | protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) | 3654 | protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) |
3655 | { | 3655 | { |
3656 | part.AngularVelocity = new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)); | 3656 | part.UpdateAngularVelocity(new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate))); |
3657 | part.ScheduleTerseUpdate(); | ||
3658 | part.SendTerseUpdateToAllClients(); | ||
3659 | part.ParentGroup.HasGroupChanged = true; | ||
3660 | } | 3657 | } |
3661 | 3658 | ||
3662 | public LSL_Integer llGetStartParameter() | 3659 | public LSL_Integer llGetStartParameter() |
@@ -3958,11 +3955,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3958 | parentPrim = targetPart.ParentGroup; | 3955 | parentPrim = targetPart.ParentGroup; |
3959 | childPrim = m_host.ParentGroup; | 3956 | childPrim = m_host.ParentGroup; |
3960 | } | 3957 | } |
3961 | // byte uf = childPrim.RootPart.UpdateFlag; | 3958 | |
3962 | childPrim.RootPart.UpdateFlag = 0; | 3959 | // Required for linking |
3960 | childPrim.RootPart.ClearUpdateSchedule(); | ||
3963 | parentPrim.LinkToGroup(childPrim); | 3961 | parentPrim.LinkToGroup(childPrim); |
3964 | // if (uf != (Byte)0) | ||
3965 | // parent.RootPart.UpdateFlag = uf; | ||
3966 | } | 3962 | } |
3967 | 3963 | ||
3968 | parentPrim.TriggerScriptChangedEvent(Changed.LINK); | 3964 | parentPrim.TriggerScriptChangedEvent(Changed.LINK); |
@@ -4059,7 +4055,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4059 | parts[0].ParentGroup.areUpdatesSuspended = true; | 4055 | parts[0].ParentGroup.areUpdatesSuspended = true; |
4060 | foreach (SceneObjectPart part in parts) | 4056 | foreach (SceneObjectPart part in parts) |
4061 | { | 4057 | { |
4062 | part.UpdateFlag = 0; | 4058 | part.ClearUpdateSchedule(); |
4063 | newRoot.ParentGroup.LinkToGroup(part.ParentGroup); | 4059 | newRoot.ParentGroup.LinkToGroup(part.ParentGroup); |
4064 | } | 4060 | } |
4065 | } | 4061 | } |