mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Implemented DIE_AT_EDGE and Temporary objects don't save to the database.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user