mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
don't try to rez a object from a asset with empty data and Let user know about it
This commit is contained in:
@@ -867,6 +867,15 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||
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;
|
||||
|
||||
List<SceneObjectGroup> objlist;
|
||||
|
||||
Reference in New Issue
Block a user