reject selection reset if Ctrl is pressed
This commit is contained in:
@@ -2249,6 +2249,8 @@ void MapView::doSelection (bool selectTerrainOnly, bool mouseMove)
|
||||
{
|
||||
auto const& hit (results.front().second);
|
||||
|
||||
if (terrainMode == editing_mode::object)
|
||||
{
|
||||
if (QGuiApplication::queryKeyboardModifiers().testFlag(Qt::ShiftModifier))
|
||||
{
|
||||
if (hit.which() == eEntry_Model || hit.which() == eEntry_WMO)
|
||||
@@ -2275,7 +2277,13 @@ void MapView::doSelection (bool selectTerrainOnly, bool mouseMove)
|
||||
_world->range_add_to_selection(_cursor_pos, objectEditor->brushRadius(), true);
|
||||
}
|
||||
}
|
||||
else if (!_mod_space_down && !_mod_alt_down)
|
||||
else if (!_mod_space_down && !_mod_alt_down && !_mod_ctrl_down)
|
||||
{
|
||||
_world->reset_selection();
|
||||
_world->add_to_selection(hit);
|
||||
}
|
||||
}
|
||||
else if (hit.which() == eEntry_MapChunk)
|
||||
{
|
||||
_world->reset_selection();
|
||||
_world->add_to_selection(hit);
|
||||
@@ -2854,10 +2862,14 @@ void MapView::mousePressEvent(QMouseEvent* event)
|
||||
|
||||
if (leftMouse)
|
||||
{
|
||||
if (!(terrainMode == editing_mode::mccv && _mod_ctrl_down))
|
||||
if (terrainMode == editing_mode::object && !_mod_ctrl_down)
|
||||
{
|
||||
doSelection(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
doSelection(true);
|
||||
}
|
||||
}
|
||||
else if (rightMouse)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user