EntityHierarchyWindow: Dragging entites no longer selects them

This commit is contained in:
Simon Lübeß
2024-01-12 15:32:21 +01:00
parent 6c910ab03b
commit 827f3bb564
@@ -464,7 +464,7 @@ namespace GlitchyEditor.EditWindows
lastClickedEntity = tree.Value; lastClickedEntity = tree.Value;
} }
if (!isDragged && (hovered) && tree.Value == lastClickedEntity) if (!isDragged && (hovered && !ImGui.IsMouseDown(.Left) && !ImGui.IsMouseDown(.Right)) && tree.Value == lastClickedEntity)
{ {
if (!inSelectedList) if (!inSelectedList)
{ {