diff options
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index b7466be..a600b86 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -585,12 +585,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
585 | 585 | ||
586 | protected internal void AddPhysicalPrim(int number) | 586 | protected internal void AddPhysicalPrim(int number) |
587 | { | 587 | { |
588 | m_physicalPrim++; | 588 | m_physicalPrim += number; |
589 | } | 589 | } |
590 | 590 | ||
591 | protected internal void RemovePhysicalPrim(int number) | 591 | protected internal void RemovePhysicalPrim(int number) |
592 | { | 592 | { |
593 | m_physicalPrim--; | 593 | m_physicalPrim -= number; |
594 | } | 594 | } |
595 | 595 | ||
596 | protected internal void AddToScriptLPS(int number) | 596 | protected internal void AddToScriptLPS(int number) |
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 | } |