add missing prim count for stats
parent
2220ceb522
commit
14296bc792
|
@ -2211,8 +2211,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
SceneObjectGroupsByFullID[copy.UUID] = copy;
|
SceneObjectGroupsByFullID[copy.UUID] = copy;
|
||||||
|
|
||||||
SceneObjectPart[] parts = copy.Parts;
|
SceneObjectPart[] parts = copy.Parts;
|
||||||
|
|
||||||
|
m_numTotalPrim += parts.Length;
|
||||||
|
|
||||||
foreach (SceneObjectPart part in parts)
|
foreach (SceneObjectPart part in parts)
|
||||||
{
|
{
|
||||||
|
if (part.GetPrimType() == PrimType.SCULPT)
|
||||||
|
m_numMesh++;
|
||||||
|
else
|
||||||
|
m_numPrim++;
|
||||||
|
|
||||||
lock (SceneObjectGroupsByFullPartID)
|
lock (SceneObjectGroupsByFullPartID)
|
||||||
SceneObjectGroupsByFullPartID[part.UUID] = copy;
|
SceneObjectGroupsByFullPartID[part.UUID] = copy;
|
||||||
lock (SceneObjectGroupsByLocalPartID)
|
lock (SceneObjectGroupsByLocalPartID)
|
||||||
|
|
Loading…
Reference in New Issue