mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Fixed build on OsX
This commit is contained in:
parent
aae1250921
commit
ded6d44389
2 changed files with 3 additions and 2 deletions
|
@ -301,7 +301,6 @@ void Mouse3DController::render_settings_dialog(unsigned int canvas_width, unsign
|
||||||
ImGui::PopStyleColor();
|
ImGui::PopStyleColor();
|
||||||
Vec3f translation = m_state.get_translation().cast<float>();
|
Vec3f translation = m_state.get_translation().cast<float>();
|
||||||
Vec3f rotation = m_state.get_rotation();
|
Vec3f rotation = m_state.get_rotation();
|
||||||
unsigned int button = m_state.get_button();
|
|
||||||
ImGui::InputFloat3("Translation##3", translation.data(), "%.3f", ImGuiInputTextFlags_ReadOnly);
|
ImGui::InputFloat3("Translation##3", translation.data(), "%.3f", ImGuiInputTextFlags_ReadOnly);
|
||||||
ImGui::InputFloat3("Rotation##3", rotation.data(), "%.3f", ImGuiInputTextFlags_ReadOnly);
|
ImGui::InputFloat3("Rotation##3", rotation.data(), "%.3f", ImGuiInputTextFlags_ReadOnly);
|
||||||
|
|
||||||
|
|
|
@ -47,8 +47,10 @@ class Mouse3DController
|
||||||
template <class T>
|
template <class T>
|
||||||
struct InputQueue
|
struct InputQueue
|
||||||
{
|
{
|
||||||
size_t max_size{ 20 };
|
size_t max_size;
|
||||||
std::queue<T> queue;
|
std::queue<T> queue;
|
||||||
|
|
||||||
|
InputQueue() : max_size(20) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
InputQueue<Vec3d> m_translation;
|
InputQueue<Vec3d> m_translation;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue