mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Fix for entt update
This commit is contained in:
@@ -469,7 +469,6 @@ namespace Nuake
|
||||
}
|
||||
|
||||
entity.Destroy();
|
||||
m_Registry.shrink_to_fit();
|
||||
}
|
||||
|
||||
bool Scene::EntityExists(const std::string& name)
|
||||
@@ -638,11 +637,12 @@ namespace Nuake
|
||||
|
||||
// This will turn the deserialized entity ids into actual Entities.
|
||||
// This has to be done after the whole scene has been deserialized
|
||||
// to make sure we can fetch the id in the scene. Otherwise, we could
|
||||
m_Registry.each([this](auto e) {
|
||||
// to make sure we can fetch the id in the scene. Otherwise, we could
|
||||
for (const entt::entity& e : m_Registry.view<entt::entity>())
|
||||
{
|
||||
auto entity = Entity{ e, this };
|
||||
entity.PostDeserialize();
|
||||
});
|
||||
};
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "src/Core/Core.h"
|
||||
#include "src/Core/Maths.h"
|
||||
|
||||
#include "entt/entt.hpp"
|
||||
#include <entt/entt.hpp>
|
||||
|
||||
#include "src/Rendering/Camera.h"
|
||||
#include "Lighting/Environment.h"
|
||||
|
||||
Reference in New Issue
Block a user