Faster toolpaths refresh when changing options selection in preview
This commit is contained in:
parent
aaaa85c1f8
commit
5a7e4ff47c
6 changed files with 31 additions and 0 deletions
src/slic3r/GUI
|
@ -429,11 +429,22 @@ void GCodeViewer::refresh(const GCodeProcessor::Result& gcode_result, const std:
|
|||
#endif // ENABLE_GCODE_VIEWER_STATISTICS
|
||||
|
||||
// update buffers' render paths
|
||||
#if ENABLE_RENDER_PATH_REFRESH_AFTER_OPTIONS_CHANGE
|
||||
refresh_render_paths();
|
||||
#else
|
||||
refresh_render_paths(false, false);
|
||||
#endif // ENABLE_RENDER_PATH_REFRESH_AFTER_OPTIONS_CHANGE
|
||||
|
||||
log_memory_used("Refreshed G-code extrusion paths, ");
|
||||
}
|
||||
|
||||
#if ENABLE_RENDER_PATH_REFRESH_AFTER_OPTIONS_CHANGE
|
||||
void GCodeViewer::refresh_render_paths()
|
||||
{
|
||||
refresh_render_paths(false, false);
|
||||
}
|
||||
#endif // ENABLE_RENDER_PATH_REFRESH_AFTER_OPTIONS_CHANGE
|
||||
|
||||
void GCodeViewer::reset()
|
||||
{
|
||||
m_initialized = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue