mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: vector capacity reset(STUDIO-2239)
Change-Id: Ie40e8c6d3a42b6a40f4f73d6906acdc6e26d0b41
This commit is contained in:
parent
9c402384ac
commit
62af2b9608
3 changed files with 11 additions and 0 deletions
|
@ -176,7 +176,9 @@ void GCodeViewer::InstanceVBuffer::Ranges::reset()
|
|||
void GCodeViewer::InstanceVBuffer::reset()
|
||||
{
|
||||
s_ids.clear();
|
||||
s_ids.shrink_to_fit();
|
||||
buffer.clear();
|
||||
buffer.shrink_to_fit();
|
||||
render_ranges.reset();
|
||||
}
|
||||
|
||||
|
@ -1222,6 +1224,7 @@ void GCodeViewer::reset()
|
|||
|
||||
m_moves_count = 0;
|
||||
m_ssid_to_moveid_map.clear();
|
||||
m_ssid_to_moveid_map.shrink_to_fit();
|
||||
for (TBuffer& buffer : m_buffers) {
|
||||
buffer.reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue