diff options
author | Marius Kintel <marius@kintel.net> | 2013-04-27 05:01:45 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-04-27 05:01:45 (GMT) |
commit | 17df3f6275fce73119c311cc73a6ad057d3b47ee (patch) | |
tree | 6c907e241b53c40c10743bbf08754b86a13f6457 /src/mainwin.cc | |
parent | 6b3daa748543f13cc7cf8eff1c9efeebd6dc3a14 (diff) | |
parent | 7858b0443e7fb09134f2b69a535417688353c0bb (diff) |
Merge pull request #328 from openscad/issue116
Issue116
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index dd855fb..2e69ec2 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -158,7 +158,7 @@ settings_valueList(const QString &key, const QList<int> &defaultList = QList<int } MainWindow::MainWindow(const QString &filename) - : progresswidget(NULL) + : root_inst("group"), progresswidget(NULL) { setupUi(this); @@ -168,7 +168,7 @@ MainWindow::MainWindow(const QString &filename) this, SLOT(actionRenderCGALDone(CGAL_Nef_polyhedron *))); #endif - register_builtin(root_ctx); + root_ctx.registerBuiltin(); this->openglbox = NULL; root_module = NULL; @@ -643,8 +643,8 @@ bool MainWindow::compile(bool reload, bool procevents) if (procevents) QApplication::processEvents(); AbstractNode::resetIndexCounter(); - this->root_inst = ModuleInstantiation(); - this->absolute_root_node = this->root_module->evaluate(&this->root_ctx, &this->root_inst); + this->root_inst = ModuleInstantiation("group"); + this->absolute_root_node = this->root_module->evaluate(&this->root_ctx, &this->root_inst, NULL); if (this->absolute_root_node) { // Do we have an explicit root node (! modifier)? |