diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-07 21:08:47 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-07 21:08:47 (GMT) |
commit | 97c484efb90d9cbec03b5dd6f71bb8d91fe06f63 (patch) | |
tree | e28af5cc46257703ae4bc4e5b37a946f7d0a9116 /mainwin.cc | |
parent | 65ee5136619352cb58b055ec63c473fbd5d08e1d (diff) |
Clifford Wolf:
Added Design->FlushCaches menu action
git-svn-id: http://svn.clifford.at/openscad/trunk@232 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r-- | mainwin.cc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -195,6 +195,7 @@ MainWindow::MainWindow(const char *filename) connect(this->designActionExportSTL, SIGNAL(triggered()), this, SLOT(actionExportSTL())); connect(this->designActionExportOFF, SIGNAL(triggered()), this, SLOT(actionExportOFF())); connect(this->designActionExportDXF, SIGNAL(triggered()), this, SLOT(actionExportDXF())); + connect(this->designActionFlushCaches, SIGNAL(triggered()), this, SLOT(actionFlushCaches())); // View menu #ifndef ENABLE_OPENCSG @@ -1130,6 +1131,12 @@ void MainWindow::actionExportDXF() #endif /* ENABLE_CGAL */ } +void MainWindow::actionFlushCaches() +{ + PolySet::ps_cache.clear(); + AbstractNode::cgal_nef_cache.clear(); +} + void MainWindow::viewModeActionsUncheck() { viewActionOpenCSG->setChecked(false); @@ -1683,3 +1690,4 @@ void MainWindow::closeEvent(QCloseEvent *event) event->ignore(); } } + |