Fixed build on OsX

This commit is contained in:
Enrico Turri 2019-10-10 09:29:55 +02:00
parent aae1250921
commit ded6d44389
2 changed files with 3 additions and 2 deletions

View file

@ -301,7 +301,6 @@ void Mouse3DController::render_settings_dialog(unsigned int canvas_width, unsign
ImGui::PopStyleColor();
Vec3f translation = m_state.get_translation().cast<float>();
Vec3f rotation = m_state.get_rotation();
unsigned int button = m_state.get_button();
ImGui::InputFloat3("Translation##3", translation.data(), "%.3f", ImGuiInputTextFlags_ReadOnly);
ImGui::InputFloat3("Rotation##3", rotation.data(), "%.3f", ImGuiInputTextFlags_ReadOnly);

View file

@ -47,8 +47,10 @@ class Mouse3DController
template <class T>
struct InputQueue
{
size_t max_size{ 20 };
size_t max_size;
std::queue<T> queue;
InputQueue() : max_size(20) {}
};
InputQueue<Vec3d> m_translation;