try to get script content
parent
b4def9d65d
commit
58bbb9487e
|
@ -81,7 +81,18 @@ namespace OpenSim.Modules.TextureFetcher
|
|||
{
|
||||
foreach (TaskInventoryItem item in part.Inventory.GetInventoryItems())
|
||||
if (item.InvType == 10)
|
||||
{
|
||||
AssetBase assetData = m_scene.AssetService.Get(item.AssetID.ToString());
|
||||
|
||||
if(assetData != null)
|
||||
{
|
||||
String script = new ASCIIEncoding().GetString(assetData.Data);
|
||||
|
||||
m_log.Info("Script content: " + script);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -127,7 +138,6 @@ namespace OpenSim.Modules.TextureFetcher
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//Convert texture uuid list to inventar items.
|
||||
foreach (UUID texture in allTextures)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue