diff --git a/ImGuizmo.cpp b/ImGuizmo.cpp index 90f926ff..98eadfe1 100644 --- a/ImGuizmo.cpp +++ b/ImGuizmo.cpp @@ -1531,7 +1531,7 @@ namespace ImGuizmo { ImVec2 worldBound1 = worldToPos(aabb[i], boundsMVP); ImVec2 worldBound2 = worldToPos(aabb[(i + 1) % 4], boundsMVP); - if (!IsInContextRect(worldBound1) || !IsInContextRect(worldBound2)) + if (!IsInContextRect(worldBound1) && !IsInContextRect(worldBound2)) { continue; }