mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-04 11:35:06 +03:00
Animation now correctly paused in pause mode
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "AnimationSystem.h"
|
||||
|
||||
#include <Engine.h>
|
||||
#include "src/Scene/Scene.h"
|
||||
#include "src/Scene/Entities/Entity.h"
|
||||
#include "src/Scene/Components/SkinnedModelComponent.h"
|
||||
@@ -20,6 +21,11 @@ namespace Nuake
|
||||
|
||||
void AnimationSystem::Update(Timestep ts)
|
||||
{
|
||||
if (Engine::GetGameState() == GameState::Paused)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
auto view = m_Scene->m_Registry.view<TransformComponent, SkinnedModelComponent>();
|
||||
for (auto e : view)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user