Spin off starting scripts in rezzed objects into a thread to avoid a recursion
into the script engine if the script was suspended inside an event.avinationmerge
parent
2ca80add14
commit
24862eaf15
|
@ -3007,7 +3007,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
// objects rezzed with this method are die_at_edge by default.
|
// objects rezzed with this method are die_at_edge by default.
|
||||||
new_group.RootPart.SetDieAtEdge(true);
|
new_group.RootPart.SetDieAtEdge(true);
|
||||||
|
|
||||||
|
Util.FireAndForget(delegate object x)
|
||||||
|
{
|
||||||
new_group.ResumeScripts();
|
new_group.ResumeScripts();
|
||||||
|
});
|
||||||
|
|
||||||
m_ScriptEngine.PostObjectEvent(m_host.LocalId, new EventParams(
|
m_ScriptEngine.PostObjectEvent(m_host.LocalId, new EventParams(
|
||||||
"object_rez", new Object[] {
|
"object_rez", new Object[] {
|
||||||
|
|
Loading…
Reference in New Issue