From 5a9bb2eafb8e1f387b471b7d155423f78334a7d7 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 26 Sep 2008 20:44:41 +0000 Subject: [PATCH] And actually do what I intended to do with the last commit. Message is gone. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index c3391d6cd5..5ff6dec038 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -1311,9 +1311,9 @@ namespace OpenSim.Region.Environment.Scenes } part.ParentGroup.AddInventoryItem(remoteClient, localID, item, copyID); - // Posting on_rez to the prim. Not much point, but - // needed to kill gratuitious compiler messages - part.CreateScriptInstance(copyID, 0, true, DefaultScriptEngine); + // TODO: switch to posting on_rez here when scripts + // have state in inventory + part.CreateScriptInstance(copyID, 0, false, DefaultScriptEngine); // m_log.InfoFormat("[PRIMINVENTORY]: " + // "Rezzed script {0} into prim local ID {1} for user {2}", @@ -2060,8 +2060,8 @@ namespace OpenSim.Region.Environment.Scenes //group.ApplyPhysics(m_physicalPrim); } - // TODO: make this true to fire on_rez when scripts have state while in inventory - group.CreateScriptInstances(0, false, DefaultScriptEngine); + // Fire on_rez + group.CreateScriptInstances(0, true, DefaultScriptEngine); if (!attachment) rootPart.ScheduleFullUpdate();