diff options
author | Melanie | 2011-11-03 00:06:14 +0000 |
---|---|---|
committer | Melanie | 2011-11-03 00:06:14 +0000 |
commit | 243acef917e8e61b9feef4587b440a77737e016e (patch) | |
tree | af80394d32977c53b729a395037dd080c8ffe214 /OpenSim/Region/ScriptEngine | |
parent | Merge branch 'master' into bigmerge (diff) | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC-243acef917e8e61b9feef4587b440a77737e016e.zip opensim-SC-243acef917e8e61b9feef4587b440a77737e016e.tar.gz opensim-SC-243acef917e8e61b9feef4587b440a77737e016e.tar.bz2 opensim-SC-243acef917e8e61b9feef4587b440a77737e016e.tar.xz |
Merge branch 'master' into bigmerge
Conflicts:
OpenSim/Region/Framework/Scenes/SceneGraph.cs
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-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 | } |