From 3b5648085c334684d4ca6c1122d30017dc537555 Mon Sep 17 00:00:00 2001 From: Sandy Noble Date: Sat, 24 Oct 2015 18:35:14 +0100 Subject: [PATCH] Added .txt as a valid gcode extension --- polargraphcontroller.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polargraphcontroller.pde b/polargraphcontroller.pde index 9abe62f..5e5e959 100644 --- a/polargraphcontroller.pde +++ b/polargraphcontroller.pde @@ -1101,7 +1101,7 @@ class VectorFileFilter extends javax.swing.filechooser.FileFilter public boolean accept(File file) { String filename = file.getName(); filename.toLowerCase(); - if (file.isDirectory() || filename.endsWith(".svg") || filename.endsWith(".gco") || filename.endsWith(".g")) + if (file.isDirectory() || filename.endsWith(".svg") || filename.endsWith(".gco") || filename.endsWith(".g") || filename.endsWith(".txt")) return true; else return false; @@ -1197,7 +1197,7 @@ RShape loadShapeFromFile(String filename) { if (filename.toLowerCase().endsWith(".svg")) { sh = RG.loadShape(filename); } - else if (filename.toLowerCase().endsWith(".gco") || filename.toLowerCase().endsWith(".g")) { + else if (filename.toLowerCase().endsWith(".gco") || filename.toLowerCase().endsWith(".g") || filename.toLowerCase().endsWith(".txt")) { sh = loadShapeFromGCodeFile(filename); } return sh;