mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Reinstate cleaning objects from parcel when avatars sit on them. Instead do it
properly for temp-on-rez. Auto-return overrides sitting. Temp does not.
This commit is contained in:
@@ -5122,7 +5122,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if ((grp.RootPart.Flags & PrimFlags.TemporaryOnRez) != 0)
|
||||
{
|
||||
if (grp.RootPart.Expires <= DateTime.Now)
|
||||
if (grp.GetSittingAvatarsCount() == 0 && grp.RootPart.Expires <= DateTime.Now)
|
||||
DeleteSceneObject(grp, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2023,7 +2023,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
(parcel.LandData.GroupID != GroupID ||
|
||||
parcel.LandData.GroupID == UUID.Zero))
|
||||
{
|
||||
if (GetSittingAvatarsCount() == 0 && (DateTime.UtcNow - RootPart.Rezzed).TotalMinutes >
|
||||
if ((DateTime.UtcNow - RootPart.Rezzed).TotalMinutes >
|
||||
parcel.LandData.OtherCleanTime)
|
||||
{
|
||||
DetachFromBackup();
|
||||
|
||||
Reference in New Issue
Block a user