Recognize .ngc as a valid G-Code export extension.

This commit is contained in:
whitequark 2016-08-25 02:57:29 +00:00
parent a1e18ae4a6
commit b9d375652c

View File

@ -628,13 +628,13 @@ VectorFileWriter *VectorFileWriter::ForFile(const std::string &filename) {
} else if(FilenameHasExtension(filename, ".step")||FilenameHasExtension(filename, ".stp")) {
static Step2dFileWriter Step2dWriter;
ret = &Step2dWriter;
} else if(FilenameHasExtension(filename, ".txt")) {
} else if(FilenameHasExtension(filename, ".txt")||FilenameHasExtension(filename, ".ngc")) {
static GCodeFileWriter GCodeWriter;
ret = &GCodeWriter;
} else {
Error("Can't identify output file type from file extension of "
"filename '%s'; try "
".step, .stp, .dxf, .svg, .plt, .hpgl, .pdf, .txt, "
".step, .stp, .dxf, .svg, .plt, .hpgl, .pdf, .txt, .ngc, "
".eps, or .ps.",
filename.c_str());
return NULL;