refactor: simplify EntityBase.IsDeleted property
parent
21f1b68fdf
commit
6d4432f440
|
@ -66,12 +66,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Signals whether this entity was in a scene but has since been removed from it.
|
/// Signals whether this entity was in a scene but has since been removed from it.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsDeleted
|
public bool IsDeleted { get; protected internal set; }
|
||||||
{
|
|
||||||
get { return m_isDeleted; }
|
|
||||||
set { m_isDeleted = value; }
|
|
||||||
}
|
|
||||||
protected bool m_isDeleted;
|
|
||||||
|
|
||||||
protected Vector3 m_pos;
|
protected Vector3 m_pos;
|
||||||
|
|
||||||
|
|
|
@ -1832,7 +1832,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// an object has been deleted from a scene before update was processed.
|
// an object has been deleted from a scene before update was processed.
|
||||||
// A more fundamental overhaul of the update mechanism is required to eliminate all
|
// A more fundamental overhaul of the update mechanism is required to eliminate all
|
||||||
// the race conditions.
|
// the race conditions.
|
||||||
if (m_isDeleted)
|
if (IsDeleted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Even temporary objects take part in physics (e.g. temp-on-rez bullets)
|
// Even temporary objects take part in physics (e.g. temp-on-rez bullets)
|
||||||
|
@ -2142,7 +2142,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
|
|
||||||
m_scene.UnlinkSceneObject(objectGroup, true);
|
m_scene.UnlinkSceneObject(objectGroup, true);
|
||||||
objectGroup.m_isDeleted = true;
|
objectGroup.IsDeleted = true;
|
||||||
|
|
||||||
objectGroup.m_parts.Clear();
|
objectGroup.m_parts.Clear();
|
||||||
|
|
||||||
|
@ -3385,7 +3385,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public virtual ISceneObject CloneForNewScene()
|
public virtual ISceneObject CloneForNewScene()
|
||||||
{
|
{
|
||||||
SceneObjectGroup sog = Copy(false);
|
SceneObjectGroup sog = Copy(false);
|
||||||
sog.m_isDeleted = false;
|
sog.IsDeleted = false;
|
||||||
return sog;
|
return sog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3809,7 +3809,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
List<AvatarAttachment> attachments = m_appearance.GetAttachments();
|
List<AvatarAttachment> attachments = m_appearance.GetAttachments();
|
||||||
foreach (AvatarAttachment attach in attachments)
|
foreach (AvatarAttachment attach in attachments)
|
||||||
{
|
{
|
||||||
if (m_isDeleted)
|
if (IsDeleted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int p = attach.AttachPoint;
|
int p = attach.AttachPoint;
|
||||||
|
|
Loading…
Reference in New Issue