From 2ceffc44450c97ff83c4bc5d790fe9a9a77d0253 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Thu, 23 Jul 2015 14:18:46 +0200 Subject: [PATCH] Same for patches --- radiant/patch.h | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.39.2