@@ -237,7 +237,7 @@ impl crate::cmd::Command for CmdFileSnapshot {
237237 data: input. clone( ) ,
238238 } ] ;
239239
240- if let kittycad:: types:: InputFormat :: Gltf { } = src_format {
240+ if let kittycad:: types:: InputFormat3D :: Gltf { } = src_format {
241241 if let Ok ( str) = std:: str:: from_utf8 ( & input) {
242242 if let Ok ( json) = serde_json:: from_str :: < crate :: types:: GltfStandardJsonLite > ( str) {
243243 // Use the path of the control file as the prefix path of
@@ -717,7 +717,7 @@ fn get_import_format_from_extension(ext: &str) -> Result<kittycad::types::FileIm
717717fn get_input_format (
718718 format : kittycad:: types:: FileImportFormat ,
719719 ul : kittycad:: types:: UnitLength ,
720- ) -> Result < kittycad:: types:: InputFormat > {
720+ ) -> Result < kittycad:: types:: InputFormat3D > {
721721 // Zoo co-ordinate system.
722722 //
723723 // * Forward: -Y
@@ -734,15 +734,15 @@ fn get_input_format(
734734 } ,
735735 } ;
736736 match format {
737- kittycad:: types:: FileImportFormat :: Step => Ok ( kittycad:: types:: InputFormat :: Step {
737+ kittycad:: types:: FileImportFormat :: Step => Ok ( kittycad:: types:: InputFormat3D :: Step {
738738 split_closed_faces : false ,
739739 } ) ,
740- kittycad:: types:: FileImportFormat :: Stl => Ok ( kittycad:: types:: InputFormat :: Stl { coords, units : ul } ) ,
741- kittycad:: types:: FileImportFormat :: Obj => Ok ( kittycad:: types:: InputFormat :: Obj { coords, units : ul } ) ,
742- kittycad:: types:: FileImportFormat :: Gltf => Ok ( kittycad:: types:: InputFormat :: Gltf { } ) ,
743- kittycad:: types:: FileImportFormat :: Ply => Ok ( kittycad:: types:: InputFormat :: Ply { coords, units : ul } ) ,
744- kittycad:: types:: FileImportFormat :: Fbx => Ok ( kittycad:: types:: InputFormat :: Fbx { } ) ,
745- kittycad:: types:: FileImportFormat :: Sldprt => Ok ( kittycad:: types:: InputFormat :: Sldprt {
740+ kittycad:: types:: FileImportFormat :: Stl => Ok ( kittycad:: types:: InputFormat3D :: Stl { coords, units : ul } ) ,
741+ kittycad:: types:: FileImportFormat :: Obj => Ok ( kittycad:: types:: InputFormat3D :: Obj { coords, units : ul } ) ,
742+ kittycad:: types:: FileImportFormat :: Gltf => Ok ( kittycad:: types:: InputFormat3D :: Gltf { } ) ,
743+ kittycad:: types:: FileImportFormat :: Ply => Ok ( kittycad:: types:: InputFormat3D :: Ply { coords, units : ul } ) ,
744+ kittycad:: types:: FileImportFormat :: Fbx => Ok ( kittycad:: types:: InputFormat3D :: Fbx { } ) ,
745+ kittycad:: types:: FileImportFormat :: Sldprt => Ok ( kittycad:: types:: InputFormat3D :: Sldprt {
746746 split_closed_faces : false ,
747747 } ) ,
748748 }
0 commit comments