fix Xengine script instance load

avinationmerge
UbitUmarov 2014-07-18 11:43:31 +01:00
parent 19d33c571d
commit d5e0437465
1 changed files with 6 additions and 7 deletions

View File

@ -1325,13 +1325,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
(m_Scripts[itemID].AssetID != assetID))
{
lockScriptsForRead(false);
instance = new ScriptInstance(this, part,
instance = new ScriptInstance(this, part,
item,
startParam, postOnRez,
m_MaxScriptQueue);
if (part.ParentGroup.IsAttachment)
appDomain = part.ParentGroup.RootPart.UUID;
@ -1392,8 +1390,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
sandbox = AppDomain.CurrentDomain;
}
if (!instance.Load(m_AppDomains[appDomain], assembly, stateSource))
return false;
// if (!instance.Load(m_AppDomains[appDomain], assembly, stateSource))
// return false;
m_AppDomains[appDomain] = sandbox;
@ -1413,7 +1411,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
}
instance.Load(m_AppDomains[appDomain], assembly, stateSource);
if (!instance.Load(m_AppDomains[appDomain], assembly, stateSource))
return false;
// m_log.DebugFormat(
// "[XEngine] Loaded script {0}.{1}, script UUID {2}, prim UUID {3} @ {4}.{5}",
// part.ParentGroup.RootPart.Name, item.Name, assetID, part.UUID,