diff --git a/Source/ImGui/Private/ImGuiModuleManager.cpp b/Source/ImGui/Private/ImGuiModuleManager.cpp index f958ab0..171dec7 100644 --- a/Source/ImGui/Private/ImGuiModuleManager.cpp +++ b/Source/ImGui/Private/ImGuiModuleManager.cpp @@ -147,16 +147,9 @@ void FImGuiModuleManager::ReleaseTickInitializer() } } -bool FImGuiModuleManager::IsInUpdateThread() -{ - // We can get ticks from the Game thread and Slate loading thread. In both cases IsInGameThread() is true, so we - // need to make additional test to filter out loading thread. - return IsInGameThread() && !IsInSlateThread(); -} - void FImGuiModuleManager::Tick(float DeltaSeconds) { - if (IsInUpdateThread()) + if (IsInGameThread()) { // Update context manager to advance all ImGui contexts to the next frame. ContextManager.Tick(DeltaSeconds); diff --git a/Source/ImGui/Private/ImGuiModuleManager.h b/Source/ImGui/Private/ImGuiModuleManager.h index 4409318..7b42450 100644 --- a/Source/ImGui/Private/ImGuiModuleManager.h +++ b/Source/ImGui/Private/ImGuiModuleManager.h @@ -54,8 +54,6 @@ private: void CreateTickInitializer(); void ReleaseTickInitializer(); - bool IsInUpdateThread(); - void Tick(float DeltaSeconds); void OnViewportCreated();