]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patch.h
Merge commit '3ec33465b13ce35100e1557b499ffc335cd6e22c' into garux-merge
[xonotic/netradiant.git] / radiant / patch.h
index c9812e614b88820fdc78f8c3a5953156d9f80a3b..79264b003c06da07144f8f1e5609c44270a80265 100644 (file)
@@ -1422,6 +1422,11 @@ 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();