Skip to content

Commit

Permalink
fix selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Evil-Spirit committed Mar 5, 2018
1 parent b1777e0 commit 3c8cc2e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/draw.cpp
Expand Up @@ -352,16 +352,16 @@ GraphicsWindow::Selection GraphicsWindow::ChooseFromHoverToSelect() {
}

GraphicsWindow::Selection GraphicsWindow::ChooseFromHoverToDrag() {
Selection sel = {};
for(const Hover &hov : hoverList) {
if(hov.selection.entity.v == 0) continue;
if(!hov.selection.entity.isFromRequest()) continue;
sel = hov.selection;
break;
}
if(!sel.IsEmpty()) {
return sel;
}
// Selection sel = {};
// for(const Hover &hov : hoverList) {
// if(hov.selection.entity.v == 0) continue;
// if(!hov.selection.entity.isFromRequest()) continue;
// sel = hov.selection;
// break;
// }
// if(!sel.IsEmpty()) {
// return sel;
// }
return ChooseFromHoverToSelect();
}

Expand Down

0 comments on commit 3c8cc2e

Please sign in to comment.