This commit is contained in:
parent
05c3e411f6
commit
bfde1974d4
@ -688,7 +688,6 @@ enum DownloadDecalError{
|
||||
ParseInt(std::num::ParseIntError),
|
||||
Get(rbx_asset::cookie::GetError),
|
||||
LoadDom(LoadDomError),
|
||||
FromUtf8(std::string::FromUtf8Error),
|
||||
NoFirstInstance,
|
||||
NoTextureProperty,
|
||||
TexturePropertyInvalid,
|
||||
@ -766,7 +765,6 @@ async fn create_asset_medias(config:CreateAssetMediasConfig)->AResult<()>{
|
||||
asset_id:parse_result.map_err(DownloadDecalError::ParseInt)?,
|
||||
version:None,
|
||||
}).await.map_err(DownloadDecalError::Get)?;
|
||||
println!("{}",String::from_utf8(file.clone()).map_err(DownloadDecalError::FromUtf8)?);
|
||||
let dom=load_dom(std::io::Cursor::new(file)).map_err(DownloadDecalError::LoadDom)?;
|
||||
let instance=dom.get_by_ref(
|
||||
*dom.root().children().first().ok_or(DownloadDecalError::NoFirstInstance)?
|
||||
|
Loading…
Reference in New Issue
Block a user