mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
state_entry is now executed on state change.
This commit is contained in:
@@ -73,7 +73,18 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
public string State
|
||||
{
|
||||
get { return m_state; }
|
||||
set { m_state = value; }
|
||||
set {
|
||||
bool changed = false;
|
||||
if (m_state != value)
|
||||
changed = true;
|
||||
// Set it
|
||||
m_state = value;
|
||||
|
||||
if (changed)
|
||||
{
|
||||
m_ScriptEngine.m_EventManager.state_entry(m_localID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Object never expires
|
||||
|
||||
Reference in New Issue
Block a user