diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-09 10:12:58 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-09 10:12:58 (GMT) |
commit | 14e1ad23635a65d98c59ae14e35484abbd3ba6c4 (patch) | |
tree | 0ef8483812496e456023a9341dcf76f0bbba7006 /src/openscad.cc | |
parent | 0e938364fea8c3ab07b06491fd21cb34a403bf99 (diff) |
Forgot to actually add most files in previous commit (#217)
Diffstat (limited to 'src/openscad.cc')
-rw-r--r-- | src/openscad.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openscad.cc b/src/openscad.cc index 6a0d057..7c54762 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -359,7 +359,8 @@ int main(int argc, char **argv) fs::path fpath = boosty::absolute(fs::path(filename)); fs::path fparent = fpath.parent_path(); fs::current_path(fparent); - + top_ctx.setDocumentPath(fparent.string()); + AbstractNode::resetIndexCounter(); absolute_root_node = root_module->instantiate(&top_ctx, &root_inst, NULL); |