fix scripts start on user rez from a prim inventory

This commit is contained in:
UbitUmarov
2021-06-27 18:22:49 +01:00
parent b6a846f2c2
commit b27b931147

View File

@@ -2816,11 +2816,12 @@ namespace OpenSim.Region.Framework.Scenes
AddNewSceneObject(group, true, curpos, crot, vel);
}
// We can only call this after adding the scene object, since the scene object references the scene
// to find out if scripts should be activated at all.
group.InvalidateEffectivePerms();
group.CreateScriptInstances(param, true, DefaultScriptEngine, 3);
if(humanRez)
group.ResumeScripts();
group.ScheduleGroupForFullUpdate();
}