From: Mattia Basaglia Date: Thu, 23 Jul 2015 12:18:46 +0000 (+0200) Subject: Same for patches X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2ceffc44450c97ff83c4bc5d790fe9a9a77d0253;p=xonotic%2Fnetradiant.git Same for patches --- diff --git a/radiant/patch.h b/radiant/patch.h index 9e1bb16d..ee4fb03a 100644 --- a/radiant/patch.h +++ b/radiant/patch.h @@ -1414,6 +1414,12 @@ void allocate( std::size_t size ){ 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); + } } bool isSelected() const { return m_selectable.isSelected();