diff options
author | UbitUmarov | 2016-07-13 10:25:52 +0100 |
---|---|---|
committer | UbitUmarov | 2016-07-13 10:25:52 +0100 |
commit | 14296bc7926b4d3e0294915d33098584373dfa42 (patch) | |
tree | d8d5629e78709c9df558311d52b24b313166fda1 /OpenSim/Region/Framework/Scenes/SceneGraph.cs | |
parent | a few changes to culling (diff) | |
download | opensim-SC-14296bc7926b4d3e0294915d33098584373dfa42.zip opensim-SC-14296bc7926b4d3e0294915d33098584373dfa42.tar.gz opensim-SC-14296bc7926b4d3e0294915d33098584373dfa42.tar.bz2 opensim-SC-14296bc7926b4d3e0294915d33098584373dfa42.tar.xz |
add missing prim count for stats
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 90ee1d1..f59518b 100755 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -2211,8 +2211,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
2211 | SceneObjectGroupsByFullID[copy.UUID] = copy; | 2211 | SceneObjectGroupsByFullID[copy.UUID] = copy; |
2212 | 2212 | ||
2213 | SceneObjectPart[] parts = copy.Parts; | 2213 | SceneObjectPart[] parts = copy.Parts; |
2214 | |||
2215 | m_numTotalPrim += parts.Length; | ||
2216 | |||
2214 | foreach (SceneObjectPart part in parts) | 2217 | foreach (SceneObjectPart part in parts) |
2215 | { | 2218 | { |
2219 | if (part.GetPrimType() == PrimType.SCULPT) | ||
2220 | m_numMesh++; | ||
2221 | else | ||
2222 | m_numPrim++; | ||
2223 | |||
2216 | lock (SceneObjectGroupsByFullPartID) | 2224 | lock (SceneObjectGroupsByFullPartID) |
2217 | SceneObjectGroupsByFullPartID[part.UUID] = copy; | 2225 | SceneObjectGroupsByFullPartID[part.UUID] = copy; |
2218 | lock (SceneObjectGroupsByLocalPartID) | 2226 | lock (SceneObjectGroupsByLocalPartID) |