From 14296bc7926b4d3e0294915d33098584373dfa42 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 13 Jul 2016 10:25:52 +0100 Subject: [PATCH] add missing prim count for stats --- OpenSim/Region/Framework/Scenes/SceneGraph.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 90ee1d19f2..f59518ba8c 100755 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs @@ -2211,8 +2211,16 @@ namespace OpenSim.Region.Framework.Scenes SceneObjectGroupsByFullID[copy.UUID] = copy; SceneObjectPart[] parts = copy.Parts; + + m_numTotalPrim += parts.Length; + foreach (SceneObjectPart part in parts) { + if (part.GetPrimType() == PrimType.SCULPT) + m_numMesh++; + else + m_numPrim++; + lock (SceneObjectGroupsByFullPartID) SceneObjectGroupsByFullPartID[part.UUID] = copy; lock (SceneObjectGroupsByLocalPartID)