From b4164223496812ccf8c6d0a938f57a12595d68a0 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 26 Sep 2008 20:18:31 +0000 Subject: Kill "Compile successful" message when rezzing prims/wearing attachments Changes behavior to send on_rez event to prims when rezzed from agent inventory. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 560e17e..c3391d6 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -1311,8 +1311,9 @@ namespace OpenSim.Region.Environment.Scenes } part.ParentGroup.AddInventoryItem(remoteClient, localID, item, copyID); - // TODO: set this to "true" when scripts in inventory have persistent state to fire on_rez - part.CreateScriptInstance(copyID, 0, false, DefaultScriptEngine); + // Posting on_rez to the prim. Not much point, but + // needed to kill gratuitious compiler messages + part.CreateScriptInstance(copyID, 0, true, DefaultScriptEngine); // m_log.InfoFormat("[PRIMINVENTORY]: " + // "Rezzed script {0} into prim local ID {1} for user {2}", -- cgit v1.1