summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-26 04:32:52 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-26 04:32:52 (GMT)
commita05c91bcecb7bbf85c0e5d5a307708e69f8eb9c8 (patch)
tree2c53782f53fcc614725a815630ffa43f36ca91cb /mainwin.cc
parentc318b749b12a2d51115c65a9ad8c9f45396a90d8 (diff)
Clifford Wolf:
Added generic config variables Added ${fs,fa}_{render,preview} git-svn-id: http://svn.clifford.at/openscad/trunk@22 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 1331b4b..09affed 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -32,6 +32,10 @@ MainWindow::MainWindow(const char *filename)
{
root_ctx.functions_p = &builtin_functions;
root_ctx.modules_p = &builtin_modules;
+ root_ctx.set_variable("$fs_render", Value(1.0));
+ root_ctx.set_variable("$fa_render", Value(12.0));
+ root_ctx.set_variable("$fs_preview", Value(1.0));
+ root_ctx.set_variable("$fa_preview", Value(12.0));
root_module = NULL;
root_node = NULL;
contact: Jan Huwald // Impressum