mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fixed build on OsX
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user