From b27b931147649d3c2173e8a1a814029ec1ad838a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 27 Jun 2021 18:22:49 +0100 Subject: [PATCH] fix scripts start on user rez from a prim inventory --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 48b9ae412b..9cd7155890 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -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(); }