rbx_loader: stronger Place & Model types

This commit is contained in:
2025-04-22 14:35:17 -07:00
parent 08d47b0f63
commit 615372aad5
5 changed files with 58 additions and 46 deletions

View File

@@ -423,7 +423,7 @@ async fn convert_to_snf(path:&Path,output_folder:PathBuf)->AResult<()>{
std::io::Cursor::new(entire_file)
).map_err(ConvertError::RobloxRead)?;
let mut place=model.into_place();
let mut place=strafesnet_rbx_loader::Place::from(model);
place.run_scripts();
let map=place.to_snf(LoadFailureMode::DefaultToNone).map_err(ConvertError::RobloxLoad)?;