]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patch.h
Merge branch 'master' into master-merge
[xonotic/netradiant.git] / radiant / patch.h
index 79264b003c06da07144f8f1e5609c44270a80265..45d53fa845b85676ae2a6e9b1558713a13544127 100644 (file)
@@ -1585,6 +1585,13 @@ void transformComponents( const Matrix4& matrix ){
        }
 }
 
+void invertComponentSelection(){
+       for ( PatchControlInstances::iterator i = m_ctrl_instances.begin(); i != m_ctrl_instances.end(); ++i )
+       {
+               ( *i ).m_selectable.setSelected( !( *i ).m_selectable.isSelected() );
+       }
+}
+
 
 void selectPlanes( Selector& selector, SelectionTest& test, const PlaneCallback& selectedPlaneCallback ){
        test.BeginMesh( localToWorld() );