private AssetBase MakeAsset(FaceMaterial fm, bool local) { // this are not true assets, should had never been... AssetBase asset = null; byte[] data = fm.toLLSDxml(); asset = new AssetBase(fm.ID, "llmaterial", (sbyte)OpenSimAssetType.Material, "00000000-0000-0000-0000-000000000000"); asset.Data = data; asset.Local = local; return(asset); }
private AssetBase MakeAsset(FaceMaterial fm, bool local) { // this are not true assets, should had never been... AssetBase asset = null; string txt = fm.toLLSDxml(); byte[] data = System.Text.Encoding.ASCII.GetBytes(txt); asset = new AssetBase(fm.ID, "llmaterial", (sbyte)OpenSimAssetType.Material, "00000000-0000-0000-0000-000000000000"); asset.Data = data; asset.Local = local; return(asset); }