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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_part.ParentGroup.Scene.AssetService.Get(
|
AssetBase asset = m_part.ParentGroup.Scene.AssetService.Get(item.AssetID.ToString());
|
||||||
item.AssetID.ToString(), this, delegate(string id, object sender, AssetBase asset)
|
|
||||||
{
|
|
||||||
if (null == asset)
|
if (null == asset)
|
||||||
{
|
{
|
||||||
m_log.ErrorFormat(
|
m_log.ErrorFormat(
|
||||||
|
@ -311,8 +309,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_part.ScheduleFullUpdate();
|
m_part.ScheduleFullUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RestoreSavedScriptState(UUID oldID, UUID newID)
|
private void RestoreSavedScriptState(UUID oldID, UUID newID)
|
||||||
|
|
Loading…
Reference in New Issue