mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 18:21:18 -06:00
Add live preview on open gizmo
Add delay 250ms before process for live move with slider Add short cut for unmodified mesh in processing
This commit is contained in:
parent
79dd007ec7
commit
ee7d5db31c
2 changed files with 22 additions and 9 deletions
|
|
@ -95,14 +95,13 @@ private:
|
|||
|
||||
void fix_count_by_ratio(size_t triangle_count)
|
||||
{
|
||||
if (decimate_ratio <= 0.f) {
|
||||
if (decimate_ratio <= 0.f)
|
||||
wanted_count = static_cast<uint32_t>(triangle_count);
|
||||
return;
|
||||
} else if (decimate_ratio >= 1.f) {
|
||||
else if (decimate_ratio >= 100.f)
|
||||
wanted_count = 0;
|
||||
return;
|
||||
}
|
||||
wanted_count = static_cast<uint32_t>(std::round(triangle_count * (100.f-decimate_ratio) / 100.f));
|
||||
else
|
||||
wanted_count = static_cast<uint32_t>(std::round(
|
||||
triangle_count * (100.f - decimate_ratio) / 100.f));
|
||||
}
|
||||
} m_configuration;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue