aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorUbitUmarov2012-06-17 13:28:33 +0100
committerUbitUmarov2012-06-17 13:28:33 +0100
commitca22feb09ab4f3ea172f3e81b140c00ba7ab8e9c (patch)
tree8f582c15f08aac323f273ea223fc8a9138965f58 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parent*CHECK/REVIEW* comented out not used sp.ParentPosition. Comented out SOG.Abs... (diff)
downloadopensim-SC-ca22feb09ab4f3ea172f3e81b140c00ba7ab8e9c.zip
opensim-SC-ca22feb09ab4f3ea172f3e81b140c00ba7ab8e9c.tar.gz
opensim-SC-ca22feb09ab4f3ea172f3e81b140c00ba7ab8e9c.tar.bz2
opensim-SC-ca22feb09ab4f3ea172f3e81b140c00ba7ab8e9c.tar.xz
don't send a lot of avatar data when we are just changing position or rotation ( SendTerseUpdateToAllClients() in place of SendAvatarDataToAllAgents() )
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index d9867a8..05adf8e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -8026,7 +8026,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8026 Quaternion srot = sitpart.RotationOffset; 8026 Quaternion srot = sitpart.RotationOffset;
8027 rot = Quaternion.Conjugate(srot) * rot; // removed sit part offset rotation 8027 rot = Quaternion.Conjugate(srot) * rot; // removed sit part offset rotation
8028 av.Rotation = rot; 8028 av.Rotation = rot;
8029 av.SendAvatarDataToAllAgents(); 8029// av.SendAvatarDataToAllAgents();
8030 av.SendTerseUpdateToAllClients();
8030 } 8031 }
8031 break; 8032 break;
8032 8033
@@ -8046,7 +8047,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8046 rot = Quaternion.Conjugate(srot) * rot; // remove sit part offset rotation 8047 rot = Quaternion.Conjugate(srot) * rot; // remove sit part offset rotation
8047 } 8048 }
8048 av.Rotation = rot; 8049 av.Rotation = rot;
8049 av.SendAvatarDataToAllAgents(); 8050// av.SendAvatarDataToAllAgents();
8051 av.SendTerseUpdateToAllClients();
8050 } 8052 }
8051 break; 8053 break;
8052 8054
@@ -8141,7 +8143,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8141 { 8143 {
8142 positionChanged = false; 8144 positionChanged = false;
8143 av.OffsetPosition = finalPos; 8145 av.OffsetPosition = finalPos;
8144 av.SendAvatarDataToAllAgents(); 8146// av.SendAvatarDataToAllAgents();
8147 av.SendTerseUpdateToAllClients();
8145 } 8148 }
8146 8149
8147 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++); 8150 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++);
@@ -8157,7 +8160,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8157 if (positionChanged) 8160 if (positionChanged)
8158 { 8161 {
8159 av.OffsetPosition = finalPos; 8162 av.OffsetPosition = finalPos;
8160 av.SendAvatarDataToAllAgents(); 8163// av.SendAvatarDataToAllAgents();
8164 av.SendTerseUpdateToAllClients();
8161 positionChanged = false; 8165 positionChanged = false;
8162 } 8166 }
8163 } 8167 }