Skip to content
Snippets Groups Projects
Commit cb3f0ae5 authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#42][Fix] remove setting the active camera automatically when adding a new camera

Per default: index = 0 is the active camera. The user should determine himself via setActiveCamera which camera should be active
parent 5daeb456
No related branches found
No related tags found
1 merge request!35Resolve "Kamera - Trackballkamera"
Pipeline #25701 passed
...@@ -81,7 +81,6 @@ namespace vkcv{ ...@@ -81,7 +81,6 @@ namespace vkcv{
m_cameras.push_back(camera); // TODO: is there another way we can do this? m_cameras.push_back(camera); // TODO: is there another way we can do this?
m_cameras.back().setPerspective(glm::radians(60.0f), m_window.getWidth() / m_window.getHeight(), 0.1f, 10.0f); m_cameras.back().setPerspective(glm::radians(60.0f), m_window.getWidth() / m_window.getHeight(), 0.1f, 10.0f);
m_cameraControllerTypes.push_back(ControllerType::NONE); m_cameraControllerTypes.push_back(ControllerType::NONE);
setActiveCamera(m_cameras.size() - 1);
return m_cameras.size() - 1; return m_cameras.size() - 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment