From 0e6b80015504b36363c5545744b6627554c4d10b Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 23 Jun 2012 23:05:46 +0200 Subject: Output filenames relative to document path when exporting .csg files from the command-line. Fixes #128 diff --git a/src/openscad.cc b/src/openscad.cc index 7fe054f..61ac162 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -294,6 +294,7 @@ int main(int argc, char **argv) PRINTB("Can't open file \"%s\" for export", csg_output_file); } else { + fs::current_path(fparent); // Force exported filenames to be relative to document path fstream << tree.getString(*root_node) << "\n"; fstream.close(); } -- cgit v0.10.1