intuitive_interface: if clicking without shift all other selected objects will be unselected

This commit is contained in:
stefan schippers 2024-03-06 13:02:53 +01:00
parent f663a6486d
commit 4d3af62ee1
1 changed files with 2 additions and 1 deletions

View File

@ -3394,7 +3394,6 @@ int rstate; /* (reduced state, without ShiftMask) */
if(!xctx->intuitive_interface && no_shift_no_ctrl ) unselect_all(1);
sel = find_closest_obj(xctx->mousex, xctx->mousey, 0);
if(xctx->intuitive_interface && /* !sel.type && */ no_shift_no_ctrl ) unselect_all(1);
switch(sel.type)
{
@ -3408,6 +3407,8 @@ int rstate; /* (reduced state, without ShiftMask) */
default: break;
} /*end switch */
if(xctx->intuitive_interface && !already_selected && no_shift_no_ctrl ) unselect_all(1);
if(!already_selected) select_object(xctx->mousex, xctx->mousey, SELECTED, 0, &sel);
rebuild_selected_array();