mirror of https://github.com/vitalif/openscad
Clifford Wolf:
Added Design->FlushCaches menu action git-svn-id: http://svn.clifford.at/openscad/trunk@232 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
65ee513661
commit
97c484efb9
|
@ -94,6 +94,7 @@ private slots:
|
|||
void actionExportSTL();
|
||||
void actionExportOFF();
|
||||
void actionExportDXF();
|
||||
void actionFlushCaches();
|
||||
|
||||
public:
|
||||
void viewModeActionsUncheck();
|
||||
|
|
|
@ -156,6 +156,7 @@
|
|||
<addaction name="designActionExportSTL"/>
|
||||
<addaction name="designActionExportOFF"/>
|
||||
<addaction name="designActionExportDXF"/>
|
||||
<addaction name="designActionFlushCaches"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_View">
|
||||
<property name="title">
|
||||
|
@ -604,6 +605,11 @@
|
|||
<string>Ctrl+W</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="designActionFlushCaches">
|
||||
<property name="text">
|
||||
<string>Flush Caches</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue