Updating Asset/Inv/Appearance to use some enums, and to be somewhat more fault tolerant.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@979 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -46,7 +46,7 @@ namespace libsecondlife.InventorySystem
|
||||
public InventoryScript(InventoryManager manager, InventoryItem ii)
|
||||
: base(manager, ii.Name, ii.Description, ii.FolderID, ii.InvType, ii.Type, ii.CreatorID)
|
||||
{
|
||||
if ( ii.InvType != 10 || ii.Type != Asset.ASSET_TYPE_SCRIPT )
|
||||
if (ii.InvType != 10 || ii.Type != (sbyte)Asset.AssetType.LSLText)
|
||||
throw new Exception("The InventoryItem cannot be converted to a Script, wrong InvType/Type.");
|
||||
this.iManager = manager;
|
||||
this._ItemID = ii._ItemID;
|
||||
|
||||
Reference in New Issue
Block a user