mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 06:22:24 +00:00
Recognize G-code filename extensions
This commit is contained in:
1 file changed
+2
@@ -15,6 +15,7 @@ pub enum Format {
|
||||
Dxf,
|
||||
Svg,
|
||||
Raster,
|
||||
Gcode,
|
||||
Studio,
|
||||
StencilCraft,
|
||||
}
|
||||
@@ -64,6 +65,7 @@ pub fn from_extension(ext: &str) -> Option<Format> {
|
||||
"png" | "jpg" | "jpeg" | "bmp" | "gif" | "tif" | "tiff" | "webp" | "heic" | "heif" => Some(Format::Raster),
|
||||
"studio" | "studio3" => Some(Format::Studio),
|
||||
"stencilcraft" => Some(Format::StencilCraft),
|
||||
"gcode" | "nc" => Some(Format::Gcode),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user