Make script asset fetches synchronous. Script instantiation synchronization

will not work if the instance is not created when the method returns.
slimupdates
Melanie 2010-04-19 15:29:35 +01:00
parent a89208b465
commit 3e63ce6d9d
1 changed files with 24 additions and 28 deletions

View File

@ -282,9 +282,7 @@ namespace OpenSim.Region.Framework.Scenes
return;
}
m_part.ParentGroup.Scene.AssetService.Get(
item.AssetID.ToString(), this, delegate(string id, object sender, AssetBase asset)
{
AssetBase asset = m_part.ParentGroup.Scene.AssetService.Get(item.AssetID.ToString());
if (null == asset)
{
m_log.ErrorFormat(
@ -311,8 +309,6 @@ namespace OpenSim.Region.Framework.Scenes
m_part.ScheduleFullUpdate();
}
}
);
}
}
private void RestoreSavedScriptState(UUID oldID, UUID newID)