* QE tool mouse move: highlight PlaneSelectables with alt/ctrl+alt, components in component modes

improve bestPlaneIndirect pickup (resolve, when corner is closest)
support 2d in class DragPlanes::bestPlaneIndirect
This commit is contained in:
Garux
2020-03-10 05:09:32 +03:00
parent a4b61f88e5
commit 7acdf92d50
10 changed files with 488 additions and 129 deletions

View File

@@ -1884,6 +1884,11 @@ void selectByPlane( const Plane3& plane ){
m_dragPlanes.selectByPlane( m_contained.aabb(), plane, rotation() );
}
}
void gatherPolygonsByPlane( const Plane3& plane, std::vector<std::vector<Vector3>>& polygons ) const {
if ( g_lightType == LIGHTTYPE_DOOM3 ) {
m_dragPlanes.gatherPolygonsByPlane( m_contained.aabb(), plane, polygons, rotation() );
}
}
bool isSelectedComponents() const {
@@ -1906,6 +1911,8 @@ void setSelectedComponents( bool select, SelectionSystem::EComponentMode mode ){
}
void testSelectComponents( Selector& selector, SelectionTest& test, SelectionSystem::EComponentMode mode ){
}
void gatherComponentsHighlight( std::vector<std::vector<Vector3>>& polygons, SelectionIntersection& intersection, SelectionTest& test, SelectionSystem::EComponentMode mode ) const {
}
void selectedChangedComponent( const Selectable& selectable ){
GlobalSelectionSystem().getObserver ( SelectionSystem::eComponent )( selectable );