diff options
author | Teravus Ovares | 2007-12-14 00:49:40 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-14 00:49:40 +0000 |
commit | 7fdfeb58304d614970aa7c0010951ba5a8184e4b (patch) | |
tree | 9f59c6d23e15a100f87142e50bd5c1e834babf4e /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | From Michael Osias (IBM) (diff) | |
download | opensim-SC-7fdfeb58304d614970aa7c0010951ba5a8184e4b.zip opensim-SC-7fdfeb58304d614970aa7c0010951ba5a8184e4b.tar.gz opensim-SC-7fdfeb58304d614970aa7c0010951ba5a8184e4b.tar.bz2 opensim-SC-7fdfeb58304d614970aa7c0010951ba5a8184e4b.tar.xz |
* Added Active(physical) object count to the SimStatsReporter
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 6bb00cb..f6c0ee3 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -1161,6 +1161,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
1161 | 1161 | ||
1162 | if (PhysActor.IsPhysical) | 1162 | if (PhysActor.IsPhysical) |
1163 | { | 1163 | { |
1164 | if (!isNew) | ||
1165 | this.ParentGroup.m_scene.RemovePhysicalPrim(1); | ||
1166 | |||
1164 | PhysActor.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate; | 1167 | PhysActor.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate; |
1165 | PhysActor.OnOutOfBounds -= PhysicsOutOfBounds; | 1168 | PhysActor.OnOutOfBounds -= PhysicsOutOfBounds; |
1166 | } | 1169 | } |
@@ -1184,6 +1187,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
1184 | //RotationOffset.Y, RotationOffset.Z), UsePhysics); | 1187 | //RotationOffset.Y, RotationOffset.Z), UsePhysics); |
1185 | if (UsePhysics) | 1188 | if (UsePhysics) |
1186 | { | 1189 | { |
1190 | this.ParentGroup.m_scene.AddPhysicalPrim(1); | ||
1191 | |||
1187 | PhysActor.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate; | 1192 | PhysActor.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate; |
1188 | PhysActor.OnOutOfBounds += PhysicsOutOfBounds; | 1193 | PhysActor.OnOutOfBounds += PhysicsOutOfBounds; |
1189 | } | 1194 | } |