mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Hide rotation handles if no pieces are selected.
This commit is contained in:
parent
d33f532af3
commit
4fd398caa5
1 changed files with 11 additions and 1 deletions
|
@ -2529,7 +2529,17 @@ void Project::RenderOverlays(View* view)
|
|||
}
|
||||
|
||||
// Rotation arrows.
|
||||
if (m_nCurAction == LC_ACTION_SELECT && m_nTracking == LC_TRACK_NONE)
|
||||
bool AnyPieceSelected = false;
|
||||
for (Piece* Piece = m_pPieces; Piece; Piece = Piece->m_pNext)
|
||||
{
|
||||
if (Piece->IsSelected())
|
||||
{
|
||||
AnyPieceSelected = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_nCurAction == LC_ACTION_SELECT && m_nTracking == LC_TRACK_NONE && AnyPieceSelected)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue