Fixed boolean for updating entities in Transform system

This commit is contained in:
Diren D Bharwani 2022-10-29 16:42:02 +08:00
parent 015b443e4e
commit 72cdbf55e5
1 changed files with 2 additions and 4 deletions

View File

@ -47,16 +47,14 @@ namespace SHADE
{
// Get the current scene graph to traverse and update
const auto& SCENE_GRAPH = SHSceneManager::GetCurrentSceneGraph();
// TODO(Diren): Consider how to clear dirty in pause / stop mode and update physics, but do not clear in play mode.
UpdateEntity(SCENE_GRAPH.GetRoot(), false);
UpdateEntity(SCENE_GRAPH.GetRoot(), !IsRunInEditorPause);
}
void SHTransformSystem::TransformPostPhysicsUpdate::Execute(double) noexcept
{
// Get the current scene graph to traverse and update
const auto& SCENE_GRAPH = SHSceneManager::GetCurrentSceneGraph();
UpdateEntity(SCENE_GRAPH.GetRoot(), true);
UpdateEntity(SCENE_GRAPH.GetRoot(), IsRunInEditorPause);
}
void SHTransformSystem::Init()