* select only plane of planeselectables in camera (since it's not easy to select multiple ones on purpose anyway)

This commit is contained in:
Garux
2018-03-29 00:53:43 +03:00
parent 75852ff0a1
commit 8fbc462525
3 changed files with 11 additions and 2 deletions

View File

@@ -153,6 +153,8 @@ void selectPlanes( const AABB& aabb, Selector& selector, SelectionTest& test, co
}
}
}
if( test.getVolume().GetViewMatrix().xw() != 0 || test.getVolume().GetViewMatrix().yw() != 0 ) // select only plane in camera
selectable2 = 0;
for ( std::size_t i = 0; i < 6; ++i )
if( &m_selectables[i] == selectable || &m_selectables[i] == selectable2 ){
Selector_add( selector, m_selectables[i] );