Fix state xxx within state xxx itself triggering a state "change" to
same state0.6.0-stable
parent
084ea99be6
commit
3e1441afe1
|
@ -413,6 +413,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
|
|
||||||
public void SetState(string state)
|
public void SetState(string state)
|
||||||
{
|
{
|
||||||
|
if (state == State)
|
||||||
|
return;
|
||||||
|
|
||||||
PostEvent(new EventParams("state_exit", new Object[0],
|
PostEvent(new EventParams("state_exit", new Object[0],
|
||||||
new DetectParams[0]));
|
new DetectParams[0]));
|
||||||
PostEvent(new EventParams("state", new Object[] { state },
|
PostEvent(new EventParams("state", new Object[] { state },
|
||||||
|
|
Loading…
Reference in New Issue