aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs5
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneGraph.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs9
3 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index 113b16c..d1e0c24 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -2088,10 +2088,11 @@ namespace OpenSim.Region.Environment.Scenes
2088 } 2088 }
2089 2089
2090 // Fire on_rez 2090 // Fire on_rez
2091 group.CreateScriptInstances(0, true, DefaultScriptEngine, 0);
2092
2093 if (!attachment) 2091 if (!attachment)
2092 {
2093 group.CreateScriptInstances(0, true, DefaultScriptEngine, 0);
2094 rootPart.ScheduleFullUpdate(); 2094 rootPart.ScheduleFullUpdate();
2095 }
2095 2096
2096 if (!Permissions.BypassPermissions()) 2097 if (!Permissions.BypassPermissions())
2097 { 2098 {
diff --git a/OpenSim/Region/Environment/Scenes/SceneGraph.cs b/OpenSim/Region/Environment/Scenes/SceneGraph.cs
index da3be08..22e5150 100644
--- a/OpenSim/Region/Environment/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneGraph.cs
@@ -472,6 +472,10 @@ namespace OpenSim.Region.Environment.Scenes
472 objatt.ScheduleGroupForFullUpdate(); 472 objatt.ScheduleGroupForFullUpdate();
473 if (tainted) 473 if (tainted)
474 objatt.HasGroupChanged = true; 474 objatt.HasGroupChanged = true;
475
476 // Fire after attach, so we don't get messy perms dialogs
477 //
478 objatt.CreateScriptInstances(0, true, m_parentScene.DefaultScriptEngine, 0);
475 } 479 }
476 return objatt; 480 return objatt;
477 } 481 }
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
index 793d31b..99ac722 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
@@ -241,6 +241,15 @@ namespace OpenSim.Region.Environment.Scenes
241 241
242 if (!m_part.ParentGroup.Scene.RegionInfo.RegionSettings.DisableScripts) 242 if (!m_part.ParentGroup.Scene.RegionInfo.RegionSettings.DisableScripts)
243 { 243 {
244 if (stateSource == 1) // Prim crossing
245 {
246 m_items[item.ItemID].PermsMask = 0;
247 m_items[item.ItemID].PermsGranter = UUID.Zero;
248 m_part.ParentGroup.Scene.EventManager.TriggerRezScript(
249 m_part.LocalId, item.ItemID, String.Empty, startParam, postOnRez, engine, stateSource);
250 m_part.ParentGroup.AddActiveScriptCount(1);
251 m_part.ScheduleFullUpdate();
252 }
244 AssetCache cache = m_part.ParentGroup.Scene.AssetCache; 253 AssetCache cache = m_part.ParentGroup.Scene.AssetCache;
245 254
246 cache.GetAsset(item.AssetID, delegate(UUID assetID, AssetBase asset) 255 cache.GetAsset(item.AssetID, delegate(UUID assetID, AssetBase asset)