If an object is selected, then don't include it in owner/group/others prim counts.

This fixes the total prim count that the viewer displays when prims are selected - it appears to ignore the total that we pass it and adds up the counts separately.
0.7.1-dev
Justin Clark-Casey (justincc) 2011-04-05 18:24:23 +01:00
parent c1dec225ab
commit 3d400fc663
1 changed files with 18 additions and 13 deletions

View File

@ -206,6 +206,12 @@ namespace OpenSim.Region.CoreModules.World.Land
else else
parcelCounts.Users[obj.OwnerID] = partCount; parcelCounts.Users[obj.OwnerID] = partCount;
if (obj.IsSelected)
{
parcelCounts.Selected += partCount;
}
else
{
if (landData.IsGroupOwned) if (landData.IsGroupOwned)
{ {
if (obj.OwnerID == landData.GroupID) if (obj.OwnerID == landData.GroupID)
@ -222,9 +228,7 @@ namespace OpenSim.Region.CoreModules.World.Land
else else
parcelCounts.Others += partCount; parcelCounts.Others += partCount;
} }
}
if (obj.IsSelected)
parcelCounts.Selected += partCount;
} }
} }
@ -380,6 +384,7 @@ namespace OpenSim.Region.CoreModules.World.Land
count = counts.Owner; count = counts.Owner;
count += counts.Group; count += counts.Group;
count += counts.Others; count += counts.Others;
count += counts.Selected;
} }
} }