binds... * shift + u: new uniform CSG wrap merge algorithm, merging selected brushes and/or components

This commit is contained in:
Garux
2018-10-16 01:20:09 +03:00
parent 614885f1fb
commit 0f7af6aaa4
10 changed files with 271 additions and 11 deletions

View File

@@ -1554,6 +1554,14 @@ const AABB& getSelectedComponentsBounds() const {
return m_aabb_component;
}
void gatherSelectedComponents( const Vector3Callback& callback ) const {
for ( PatchControlInstances::const_iterator i = m_ctrl_instances.begin(); i != m_ctrl_instances.end(); ++i )
{
if ( ( *i ).m_selectable.isSelected() ) {
callback( ( *i ).m_ctrl->m_vertex );
}
}
}
void testSelectComponents( Selector& selector, SelectionTest& test, SelectionSystem::EComponentMode mode ){
test.BeginMesh( localToWorld() );