]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Merge commit 'b25e4389ba4d089fc94cc3860774c8510b843042' into master-merge
authorThomas Debesse <dev@illwieckz.net>
Tue, 21 Jun 2022 01:57:24 +0000 (03:57 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 21 Jun 2022 01:57:24 +0000 (03:57 +0200)
1  2 
radiant/brushmanip.cpp
radiant/camwindow.cpp
radiant/csg.cpp
radiant/mainframe.cpp
radiant/surfacedialog.cpp

Simple merge
Simple merge
diff --cc radiant/csg.cpp
index c034095df43d925e16d69461fb9be8f4bb3bf1e6,374384b35608c1dc5c84088c176727c1374ede37..59ea7e9c1b902cb40d64c368099f1287c13ad070
@@@ -598,17 -655,24 +642,20 @@@ void post( const scene::Path& path, sce
                        else
                        {
                                ++m_before;
 -                              for ( brush_vector_t::const_iterator i = out.begin(); i != out.end(); ++i )
 -                              {
 +                              for ( Brush *b : out ) {
                                        ++m_after;
 -                                      ( *i )->removeEmptyFaces();
 -                                      if ( !( *i )->empty() ) {
 +                                      b->removeEmptyFaces();
 +                                      if ( !b->empty() ) {
                                                NodeSmartReference node( ( new BrushNode() )->node() );
 -                                              Node_getBrush( node )->copy( *( *i ) );
 -                                              delete ( *i );
 +                                              Node_getBrush( node )->copy( *b );
                                                Node_getTraversable( path.parent() )->insert( node );
                                        }
 -                                      else{
 -                                              delete ( *i );
 -                                      }
 +                                      delete b;
                                }
                                Path_deleteTop( path );
+                               if( Node_getTraversable( path.parent() )->empty() ){
+                                       m_eraseParent = true;
+                               }
                        }
                }
        }
Simple merge
Simple merge