diff options
author | Charles Krinke | 2008-07-08 15:16:43 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-08 15:16:43 +0000 |
commit | 01904e66f243df062440fc0ff621f349e92687db (patch) | |
tree | c5f0e376f10112dd01e3ba2a66294604572dd207 /OpenSim/Region/ScriptEngine/XEngine | |
parent | Mantis#1690. Thank you, Malanie for a patch that: (diff) | |
download | opensim-SC-01904e66f243df062440fc0ff621f349e92687db.zip opensim-SC-01904e66f243df062440fc0ff621f349e92687db.tar.gz opensim-SC-01904e66f243df062440fc0ff621f349e92687db.tar.bz2 opensim-SC-01904e66f243df062440fc0ff621f349e92687db.tar.xz |
Mantis#1690. Thank you kindly, Melanie for a patch that:
esets script permissions when a script is recompiled.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 11b93b4..6372247 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1375,6 +1375,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1375 | RemoveState(); | 1375 | RemoveState(); |
1376 | 1376 | ||
1377 | Stop(0); | 1377 | Stop(0); |
1378 | SceneObjectPart part=m_Engine.World.GetSceneObjectPart(m_LocalID); | ||
1379 | part.GetInventoryItem(m_ItemID).PermsMask = 0; | ||
1380 | part.GetInventoryItem(m_ItemID).PermsGranter = LLUUID.Zero; | ||
1378 | m_Engine.m_AsyncCommands.RemoveScript(m_LocalID, m_ItemID); | 1381 | m_Engine.m_AsyncCommands.RemoveScript(m_LocalID, m_ItemID); |
1379 | m_EventQueue.Clear(); | 1382 | m_EventQueue.Clear(); |
1380 | m_Script.ResetVars(); | 1383 | m_Script.ResetVars(); |
@@ -1392,6 +1395,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1392 | RemoveState(); | 1395 | RemoveState(); |
1393 | 1396 | ||
1394 | m_Script.ResetVars(); | 1397 | m_Script.ResetVars(); |
1398 | SceneObjectPart part=m_Engine.World.GetSceneObjectPart(m_LocalID); | ||
1399 | part.GetInventoryItem(m_ItemID).PermsMask = 0; | ||
1400 | part.GetInventoryItem(m_ItemID).PermsGranter = LLUUID.Zero; | ||
1395 | m_Engine.m_AsyncCommands.RemoveScript(m_LocalID, m_ItemID); | 1401 | m_Engine.m_AsyncCommands.RemoveScript(m_LocalID, m_ItemID); |
1396 | if (m_CurrentEvent != "state_entry") | 1402 | if (m_CurrentEvent != "state_entry") |
1397 | { | 1403 | { |