Make script asset fetches synchronous. Script instantiation synchronization
will not work if the instance is not created when the method returns.slimupdates
parent
a89208b465
commit
3e63ce6d9d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue