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
parent
c1dec225ab
commit
3d400fc663
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue