From 59bcf8b04025afcfc1a7bb3085d91a8975d0b092 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 1 Feb 2024 20:33:52 -0500 Subject: [PATCH] also upload gltf binary companion file --- .../fbx_to_gltf/process_job.rs | 77 +++++++++++++------ 1 file changed, 52 insertions(+), 25 deletions(-) diff --git a/crates/service/job/inference_job/src/job/job_types/format_conversion/fbx_to_gltf/process_job.rs b/crates/service/job/inference_job/src/job/job_types/format_conversion/fbx_to_gltf/process_job.rs index e0adf45aa9..cbd8afe828 100644 --- a/crates/service/job/inference_job/src/job/job_types/format_conversion/fbx_to_gltf/process_job.rs +++ b/crates/service/job/inference_job/src/job/job_types/format_conversion/fbx_to_gltf/process_job.rs @@ -28,6 +28,7 @@ use crate::job_dependencies::JobDependencies; use crate::util::maybe_download_file_from_bucket::{maybe_download_file_from_bucket, MaybeDownloadArgs}; const BUCKET_FILE_EXTENSION : &str = ".gltf"; +const BUFFER_BIN_FILE_EXTENSION : &str = ".bin"; pub struct FbxToGltfJobArgs<'a> { pub job_dependencies: &'a JobDependencies, @@ -152,62 +153,88 @@ pub async fn process_job(args: FbxToGltfJobArgs<'_>) -> Result) -> Result