* Implemented DIE_AT_EDGE and Temporary objects don't save to the database.

This commit is contained in:
Teravus Ovares
2008-05-04 22:55:52 +00:00
parent 0e31eb8314
commit 7b446aba91
6 changed files with 58 additions and 6 deletions

View File

@@ -101,6 +101,7 @@ namespace OpenSim.Region.Environment.Scenes
[XmlIgnore] private Dictionary<LLUUID, scriptEvents> m_scriptEvents = new Dictionary<LLUUID, scriptEvents>();
[XmlIgnore] public scriptEvents m_aggregateScriptEvents=0;
[XmlIgnore] private LLObject.ObjectFlags LocalFlags = LLObject.ObjectFlags.None;
[XmlIgnore] public bool DIE_AT_EDGE = false;
[XmlIgnore] public bool m_IsAttachment = false;
@@ -2733,6 +2734,25 @@ namespace OpenSim.Region.Environment.Scenes
//}
}
public void SetDieAtEdge(bool p)
{
if (m_parentGroup == null)
return;
if (m_parentGroup.RootPart == null)
return;
m_parentGroup.RootPart.DIE_AT_EDGE = p;
}
public bool GetDieAtEdge()
{
if (m_parentGroup == null)
return false;
if (m_parentGroup.RootPart == null)
return false;
return m_parentGroup.RootPart.DIE_AT_EDGE;
}
}
}