mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
vgui_controls: fix SetParent function
This commit is contained in:
@@ -1465,7 +1465,7 @@ void Panel::SetParent(VPANEL newParent)
|
||||
if( ipanel()->IsProportional(GetVParent()) )
|
||||
SetProportional(true);
|
||||
|
||||
if( IsPopup() )
|
||||
if( !IsPopup() )
|
||||
{
|
||||
// most of the time KBInput == parents kbinput
|
||||
if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled())
|
||||
|
||||
Reference in New Issue
Block a user