mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix cameras loading
This commit is contained in:
parent
9a18476437
commit
24ecb94942
3 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue