mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 00:07:52 -06:00
ENH: do uniform scale if uniform_scale is true
Change-Id: Iac208416110492fccb7b8a326c807641311dabd8
This commit is contained in:
parent
2996affc55
commit
ca3ba7604a
1 changed files with 10 additions and 0 deletions
|
@ -120,6 +120,16 @@ void GLGizmoScale3D::on_start_dragging()
|
|||
|
||||
void GLGizmoScale3D::on_update(const UpdateData& data)
|
||||
{
|
||||
bool uniform_scale = false;
|
||||
AppConfig* config = wxGetApp().app_config;
|
||||
if (config)
|
||||
uniform_scale = config->get("uniform_scale") == "1" ? true : false;
|
||||
|
||||
if (uniform_scale) {
|
||||
do_scale_uniform(data);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((m_hover_id == 0) || (m_hover_id == 1))
|
||||
do_scale_along_axis(X, data);
|
||||
else if ((m_hover_id == 2) || (m_hover_id == 3))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue