From b1920a3dc8db7e4a0fbcdf5a04b73beb1bab4a09 Mon Sep 17 00:00:00 2001 From: Jakob Bouchard Date: Thu, 6 Feb 2025 14:29:34 -0500 Subject: [PATCH] Fix inspected object tooltip being overridden --- .../Source/CogEngine/Private/CogEngineWindow_Inspector.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Plugins/Cog/Source/CogEngine/Private/CogEngineWindow_Inspector.cpp b/Plugins/Cog/Source/CogEngine/Private/CogEngineWindow_Inspector.cpp index c731ac5..844e4a7 100644 --- a/Plugins/Cog/Source/CogEngine/Private/CogEngineWindow_Inspector.cpp +++ b/Plugins/Cog/Source/CogEngine/Private/CogEngineWindow_Inspector.cpp @@ -172,17 +172,12 @@ void FCogEngineWindow_Inspector::RenderMenu() } if (ImGui::IsItemHovered()) { - ImGui::SetTooltip("Current Inspected Object: %s", InspectedObjectName.Get()); + ImGui::SetTooltip("%s", InspectedObjectName.Get()); } ImGui::PopStyleVar(1); } - if (ImGui::IsItemHovered()) - { - ImGui::SetTooltip("%s", InspectedObjectName.Get()); - } - ImGui::PopStyleColor(1); ImGui::PopStyleVar(1);