diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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) |