mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Enabled tech ENABLE_RENDER_STATISTICS
This commit is contained in:
parent
15b56c9950
commit
1445c0ad3a
4 changed files with 53 additions and 19 deletions
|
@ -1674,6 +1674,10 @@ struct Plater::priv
|
|||
std::string label_btn_export;
|
||||
std::string label_btn_send;
|
||||
|
||||
#if ENABLE_RENDER_STATISTICS
|
||||
bool show_render_statistic_dialog{ false };
|
||||
#endif // ENABLE_RENDER_STATISTICS
|
||||
|
||||
static const std::regex pattern_bundle;
|
||||
static const std::regex pattern_3mf;
|
||||
static const std::regex pattern_zip_amf;
|
||||
|
@ -6300,6 +6304,18 @@ void Plater::enter_gizmos_stack() { p->enter_gizmos_stack(); }
|
|||
void Plater::leave_gizmos_stack() { p->leave_gizmos_stack(); }
|
||||
bool Plater::inside_snapshot_capture() { return p->inside_snapshot_capture(); }
|
||||
|
||||
#if ENABLE_RENDER_STATISTICS
|
||||
void Plater::toggle_render_statistic_dialog()
|
||||
{
|
||||
p->show_render_statistic_dialog = !p->show_render_statistic_dialog;
|
||||
}
|
||||
|
||||
bool Plater::is_render_statistic_dialog_visible() const
|
||||
{
|
||||
return p->show_render_statistic_dialog;
|
||||
}
|
||||
#endif // ENABLE_RENDER_STATISTICS
|
||||
|
||||
// Wrapper around wxWindow::PopupMenu to suppress error messages popping out while tracking the popup menu.
|
||||
bool Plater::PopupMenu(wxMenu *menu, const wxPoint& pos)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue