Skip to content
Snippets Groups Projects
Commit 31e272c5 authored by Thomas Müller's avatar Thomas Müller
Browse files

Fix incorrect camera path buffer size

parent 61d355ee
No related branches found
No related tags found
No related merge requests found
...@@ -132,8 +132,8 @@ struct CameraPath { ...@@ -132,8 +132,8 @@ struct CameraPath {
#ifdef NGP_GUI #ifdef NGP_GUI
ImGuizmo::MODE m_gizmo_mode = ImGuizmo::LOCAL; ImGuizmo::MODE m_gizmo_mode = ImGuizmo::LOCAL;
ImGuizmo::OPERATION m_gizmo_op = ImGuizmo::TRANSLATE; ImGuizmo::OPERATION m_gizmo_op = ImGuizmo::TRANSLATE;
int imgui(char path_filename_buf[128], float frame_milliseconds, Eigen::Matrix<float, 3, 4>& camera, float slice_plane_z, float scale, float fov, float aperture_size, float bounding_radius, const Eigen::Matrix<float, 3, 4>& first_xform, int glow_mode, float glow_y_cutoff);
bool imgui_viz(ImDrawList* list, Eigen::Matrix<float, 4, 4>& view2proj, Eigen::Matrix<float, 4, 4>& world2proj, Eigen::Matrix<float, 4, 4>& world2view, Eigen::Vector2f focal, float aspect); bool imgui_viz(ImDrawList* list, Eigen::Matrix<float, 4, 4>& view2proj, Eigen::Matrix<float, 4, 4>& world2proj, Eigen::Matrix<float, 4, 4>& world2view, Eigen::Vector2f focal, float aspect);
int imgui(char path_filename_buf[1024], float frame_milliseconds, Eigen::Matrix<float, 3, 4>& camera, float slice_plane_z, float scale, float fov, float aperture_size, float bounding_radius, const Eigen::Matrix<float, 3, 4>& first_xform, int glow_mode, float glow_y_cutoff);
#endif #endif
}; };
......
...@@ -147,7 +147,7 @@ int CameraPath::imgui(char path_filename_buf[1024], float frame_milliseconds, Ma ...@@ -147,7 +147,7 @@ int CameraPath::imgui(char path_filename_buf[1024], float frame_milliseconds, Ma
int n = std::max(0, int(keyframes.size()) - 1); int n = std::max(0, int(keyframes.size()) - 1);
int read = 0; // 1=smooth, 2=hard int read = 0; // 1=smooth, 2=hard
ImGui::InputText("##PathFile", path_filename_buf, sizeof(path_filename_buf)); ImGui::InputText("##PathFile", path_filename_buf, 1024);
ImGui::SameLine(); ImGui::SameLine();
static std::string camera_path_load_error_string = ""; static std::string camera_path_load_error_string = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment