From 29b35a6932fc97e18772053705353ddd0b441039 Mon Sep 17 00:00:00 2001 From: antopilo Date: Sat, 21 Sep 2024 13:02:36 -0400 Subject: [PATCH] Can now reparent prefab with drag n drop --- Editor/src/Windows/EditorInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index ea2c07e1..2d5201fe 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -861,7 +861,8 @@ namespace Nuake { { ImGui::PopStyleColor(); } - else if (!m_IsRenaming && ImGui::BeginDragDropSource()) + + if (!m_IsRenaming && ImGui::BeginDragDropSource()) { ImGui::SetDragDropPayload("ENTITY", (void*)&e, sizeof(Entity)); ImGui::Text(name.c_str());