From: Thomas Debesse Date: Mon, 25 May 2020 18:12:36 +0000 (+0200) Subject: Merge commit '3ec33465b13ce35100e1557b499ffc335cd6e22c' into garux-merge X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=00a7e0326354f7837338661c2307412f5beba9fb;p=xonotic%2Fnetradiant.git Merge commit '3ec33465b13ce35100e1557b499ffc335cd6e22c' into garux-merge --- 00a7e0326354f7837338661c2307412f5beba9fb diff --cc radiant/brush.h index 21e7d9ca,93b3f636..56a2ec4a --- a/radiant/brush.h +++ b/radiant/brush.h @@@ -3314,9 -3195,13 +3314,14 @@@ void DEBUG_verify() const bool isSelected() const { return m_selectable.isSelected(); } + void setSelected( bool select ){ m_selectable.setSelected( select ); + if ( !select && parent() ){ + Selectable* sel_parent = Instance_getSelectable( *parent() ); + if ( sel_parent && sel_parent->isSelected() ) + sel_parent->setSelected( false ); + } } void update_selected() const {