fix cameras loading

This commit is contained in:
MihailRis
2024-07-12 00:20:22 +03:00
parent 9a18476437
commit 24ecb94942
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,6 @@ Level::Level(
settings(settings)
{
auto& cameraIndices = content->getIndices(ResourceType::CAMERA);
std::cout << cameraIndices.size() << std::endl;
for (size_t i = 0; i < cameraIndices.size(); i++) {
auto camera = std::make_shared<Camera>();
if (auto map = cameraIndices.getSavedData(i)) {
@@ -42,6 +41,7 @@ Level::Level(
map->num("fov", fov);
camera->setFov(fov);
}
camera->updateVectors();
cameras.push_back(std::move(camera));
}