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:
@@ -18,14 +18,14 @@ namespace libsecondlife.AssetSystem
|
||||
}
|
||||
|
||||
public AssetScript(LLUUID assetID, string source)
|
||||
: base(assetID, Asset.ASSET_TYPE_SCRIPT, false, null)
|
||||
: base(assetID, (sbyte)Asset.AssetType.LSLText, false, null)
|
||||
{
|
||||
_Source = source;
|
||||
setAsset(source);
|
||||
}
|
||||
|
||||
public AssetScript(LLUUID assetID, byte[] assetData)
|
||||
: base(assetID, Asset.ASSET_TYPE_SCRIPT, false, assetData)
|
||||
: base(assetID, (sbyte)Asset.AssetType.LSLText, false, assetData)
|
||||
{
|
||||
_Source = System.Text.Encoding.UTF8.GetString(assetData).Trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user