don't try to rez a object from a asset with empty data and Let user know about it
parent
2cffa71be2
commit
504ee6e21c
|
@ -867,6 +867,15 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(rezAsset.Data == null || rezAsset.Data.Length == 0)
|
||||||
|
{
|
||||||
|
m_log.WarnFormat(
|
||||||
|
"[INVENTORY ACCESS MODULE]: missing data in asset {0} to RezObject()",
|
||||||
|
assetID, remoteClient.Name);
|
||||||
|
remoteClient.SendAgentAlertMessage(string.Format("Unable to rez: missing data in asset {0} ", assetID), false);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
SceneObjectGroup group = null;
|
SceneObjectGroup group = null;
|
||||||
|
|
||||||
List<SceneObjectGroup> objlist;
|
List<SceneObjectGroup> objlist;
|
||||||
|
|
Loading…
Reference in New Issue