From 36b26058c95b0627327bad1857d04a3e0da25631 Mon Sep 17 00:00:00 2001 From: copperpixel <48454166+copperpixel@users.noreply.github.com> Date: Tue, 25 Nov 2025 05:43:37 +0100 Subject: [PATCH] game_controls: fix CBaseModelPanel accepting manip when not capturing mouse --- src/game/client/game_controls/basemodel_panel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/client/game_controls/basemodel_panel.cpp b/src/game/client/game_controls/basemodel_panel.cpp index 0fed0085787..787a05f60c4 100644 --- a/src/game/client/game_controls/basemodel_panel.cpp +++ b/src/game/client/game_controls/basemodel_panel.cpp @@ -516,6 +516,10 @@ void CBaseModelPanel::OnMouseReleased( vgui::MouseCode code ) if ( !m_bAllowRotation && !m_bAllowPitch ) return; + // Only accept manipulation if we were capturing the mouse + if ( input()->GetMouseCapture() != GetVPanel() ) + return; + EnableMouseCapture( false ); m_bMousePressed = false;