mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Fixed LSL State support.
* Re-applied Tedd's patch that got overwritten. * Replaced (state)\s+([^;\n\r]+)([\r\n\s];) with (state)\s+([^;\n\r]+)(;[\r\n\s]) * Added a state(string) method to BuiltIn_Commands_BaseClass
This commit is contained in:
@@ -79,7 +79,15 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
if (m_state != value)
|
||||
{
|
||||
m_state = value;
|
||||
m_ScriptEngine.m_EventManager.state_entry(m_localID);
|
||||
try
|
||||
{
|
||||
m_ScriptEngine.m_EventManager.state_entry(m_localID);
|
||||
|
||||
}
|
||||
catch (AppDomainUnloadedException)
|
||||
{
|
||||
System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user