aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorMelanie2011-11-02 23:51:48 +0000
committerMelanie2011-11-02 23:51:48 +0000
commite746840226ca56a87d597c899f7c0bd8cf2980b2 (patch)
tree3eb405e222426a8d51dd9274275673ef34780a48 /OpenSim/Region/ScriptEngine/Shared/Api
parentPort the Avination offline messaging system to Core (diff)
parentMerge branch 'master' of git://opensimulator.org/git/opensim (diff)
downloadopensim-SC-e746840226ca56a87d597c899f7c0bd8cf2980b2.zip
opensim-SC-e746840226ca56a87d597c899f7c0bd8cf2980b2.tar.gz
opensim-SC-e746840226ca56a87d597c899f7c0bd8cf2980b2.tar.bz2
opensim-SC-e746840226ca56a87d597c899f7c0bd8cf2980b2.tar.xz
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs15
1 files changed, 6 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 a51a88b..0750579 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3351,10 +3351,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3351 3351
3352 protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) 3352 protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain)
3353 { 3353 {
3354 part.AngularVelocity = new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)); 3354 part.UpdateAngularVelocity(new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)));
3355 part.ScheduleTerseUpdate();
3356 part.SendTerseUpdateToAllClients();
3357 part.ParentGroup.HasGroupChanged = true;
3358 } 3355 }
3359 3356
3360 public LSL_Integer llGetStartParameter() 3357 public LSL_Integer llGetStartParameter()
@@ -3616,11 +3613,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3616 parentPrim = targetPart.ParentGroup; 3613 parentPrim = targetPart.ParentGroup;
3617 childPrim = m_host.ParentGroup; 3614 childPrim = m_host.ParentGroup;
3618 } 3615 }
3619// byte uf = childPrim.RootPart.UpdateFlag; 3616
3620 childPrim.RootPart.UpdateFlag = 0; 3617 // Required for linking
3618 childPrim.RootPart.ClearUpdateSchedule();
3621 parentPrim.LinkToGroup(childPrim); 3619 parentPrim.LinkToGroup(childPrim);
3622// if (uf != (Byte)0)
3623// parent.RootPart.UpdateFlag = uf;
3624 } 3620 }
3625 3621
3626 parentPrim.TriggerScriptChangedEvent(Changed.LINK); 3622 parentPrim.TriggerScriptChangedEvent(Changed.LINK);
@@ -3701,7 +3697,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3701 parts.Remove(newRoot); 3697 parts.Remove(newRoot);
3702 foreach (SceneObjectPart part in parts) 3698 foreach (SceneObjectPart part in parts)
3703 { 3699 {
3704 part.UpdateFlag = 0; 3700 // Required for linking
3701 part.ClearUpdateSchedule();
3705 newRoot.ParentGroup.LinkToGroup(part.ParentGroup); 3702 newRoot.ParentGroup.LinkToGroup(part.ParentGroup);
3706 } 3703 }
3707 newRoot.ParentGroup.HasGroupChanged = true; 3704 newRoot.ParentGroup.HasGroupChanged = true;