add check for item typ
parent
a8e544765e
commit
49cb60bd8a
|
@ -80,7 +80,13 @@ namespace OpenSim.Modules.Appearance2Avatar
|
||||||
|
|
||||||
if(notecardItem != null)
|
if(notecardItem != null)
|
||||||
{
|
{
|
||||||
//GetNotecardData
|
if(notecardItem.Type != 7)
|
||||||
|
{
|
||||||
|
m_log.Error("[" + Name + "] ERROR: Given item is not a notecard");
|
||||||
|
throw new Exception("Given item is not a notecard.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AssetBase asset = m_scene.AssetService.Get(notecardItem.AssetID.ToString());
|
AssetBase asset = m_scene.AssetService.Get(notecardItem.AssetID.ToString());
|
||||||
|
|
||||||
if(asset != null)
|
if(asset != null)
|
||||||
|
|
Loading…
Reference in New Issue