corrected llResetScript according to description within LSL wiki
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>inv-download
parent
bf96f06d1e
commit
b8157174ca
|
@ -970,12 +970,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
|
|
||||||
EventQueue.Clear();
|
EventQueue.Clear();
|
||||||
m_Script.ResetVars();
|
m_Script.ResetVars();
|
||||||
|
string oldState = State;
|
||||||
State = "default";
|
State = "default";
|
||||||
|
|
||||||
Part.SetScriptEvents(ItemID,
|
Part.SetScriptEvents(ItemID,
|
||||||
(int)m_Script.GetStateEventFlags(State));
|
(int)m_Script.GetStateEventFlags(State));
|
||||||
|
|
||||||
if (m_CurrentEvent != "state_entry")
|
if (m_CurrentEvent != "state_entry" || oldState != "default")
|
||||||
{
|
{
|
||||||
m_SaveState = StatePersistedHere;
|
m_SaveState = StatePersistedHere;
|
||||||
PostEvent(new EventParams("state_entry",
|
PostEvent(new EventParams("state_entry",
|
||||||
|
|
Loading…
Reference in New Issue