add missing prim count for stats

LSLKeyTest
UbitUmarov 2016-07-13 10:25:52 +01:00
parent 2220ceb522
commit 14296bc792
1 changed files with 8 additions and 0 deletions

View File

@ -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)