* Put the script run limiter on the SceneObjectPart as otherwise you can drop scripts in prim and they'll still run with scripts disabled.

ThreadPoolClientBranch
Teravus Ovares 2008-02-06 09:53:59 +00:00
parent 9d6ea497e2
commit d842699ef3
1 changed files with 15 additions and 13 deletions

View File

@ -151,7 +151,8 @@ namespace OpenSim.Region.Environment.Scenes
// "[PRIMINVENTORY]: " + // "[PRIMINVENTORY]: " +
// "Starting script {0}, {1} in prim {2}, {3}", // "Starting script {0}, {1} in prim {2}, {3}",
// item.Name, item.ItemID, Name, UUID)); // item.Name, item.ItemID, Name, UUID));
if (!((m_parentGroup.Scene.RegionInfo.EstateSettings.regionFlags & Simulator.RegionFlags.SkipScripts) == Simulator.RegionFlags.SkipScripts))
{
AssetBase rezAsset = m_parentGroup.Scene.AssetCache.GetAsset(item.AssetID, false); AssetBase rezAsset = m_parentGroup.Scene.AssetCache.GetAsset(item.AssetID, false);
if (rezAsset != null) if (rezAsset != null)
@ -168,6 +169,7 @@ namespace OpenSim.Region.Environment.Scenes
item.Name, item.ItemID, item.AssetID)); item.Name, item.ItemID, item.AssetID));
} }
} }
}
/// <summary> /// <summary>
/// Start a script which is in this prim's inventory. /// Start a script which is in this prim's inventory.