mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-24 11:22:07 +00:00
ENH: save uniform scale to an app_config item
Change-Id: Ib4a42597308382ea195d73776790e9cd4a122b76
This commit is contained in:
@@ -463,6 +463,9 @@ void GizmoObjectManipulation::set_uniform_scaling(const bool new_value)
|
||||
}
|
||||
}
|
||||
m_uniform_scale = new_value;
|
||||
AppConfig* config = wxGetApp().app_config;
|
||||
if (config)
|
||||
config->set("uniform_scale", new_value ? "1": "0");
|
||||
}
|
||||
|
||||
static const char* label_values[2][3] = {
|
||||
@@ -894,6 +897,9 @@ void GizmoObjectManipulation::do_render_scale_input_window(ImGuiWrapper* imgui_w
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
AppConfig* config = wxGetApp().app_config;
|
||||
if (config)
|
||||
this->m_uniform_scale = config->get("uniform_scale") == "1" ? true : false;
|
||||
bool uniform_scale = this->m_uniform_scale;
|
||||
|
||||
const Selection &selection = m_glcanvas.get_selection();
|
||||
|
||||
Reference in New Issue
Block a user