Xengine: if option AppDomainLoading = true, create script domains for each SOG (like already done for attachments) and not per script. This should reduce number of domains without excessive problem of deleted scripts still loaded.

LSLKeyTest
UbitUmarov 2016-08-31 12:03:06 +01:00
parent a2a84dea49
commit 96ee7e4c2c
1 changed files with 4 additions and 3 deletions

View File

@ -1289,10 +1289,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
if ((!m_Scripts.ContainsKey(itemID)) || if ((!m_Scripts.ContainsKey(itemID)) ||
(m_Scripts[itemID].AssetID != assetID)) (m_Scripts[itemID].AssetID != assetID))
{ {
UUID appDomain = assetID; // UUID appDomain = assetID;
if (part.ParentGroup.IsAttachment) // if (part.ParentGroup.IsAttachment)
appDomain = part.ParentGroup.RootPart.UUID; // appDomain = part.ParentGroup.RootPart.UUID;
UUID appDomain = part.ParentGroup.RootPart.UUID;
if (!m_AppDomains.ContainsKey(appDomain)) if (!m_AppDomains.ContainsKey(appDomain))
{ {