mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
several changes relative to objects return and parcel prim counts: avoid null refs, report correct count of returned objects, make obkects counts by ownership coerent with return rules, etc
This commit is contained in:
@@ -185,8 +185,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// A prim is only tainted if it's allowed to be edited by the person clicking it.
|
||||
if (Permissions.CanChangeSelectedState(part, (ScenePresence)remoteClient.SceneAgent))
|
||||
{
|
||||
bool oldsel = part.IsSelected;
|
||||
part.IsSelected = true;
|
||||
EventManager.TriggerParcelPrimCountTainted();
|
||||
if(!oldsel)
|
||||
EventManager.TriggerParcelPrimCountTainted();
|
||||
}
|
||||
|
||||
part.SendPropertiesToClient(remoteClient);
|
||||
@@ -228,6 +230,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (so.OwnerID == remoteClient.AgentId)
|
||||
{
|
||||
so.SetGroup(groupID, remoteClient);
|
||||
EventManager.TriggerParcelPrimCountTainted();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user