intuitive_interface fix bug(2) (did unselect all when clicking on a new instance)

This commit is contained in:
stefan schippers 2024-03-05 09:58:48 +01:00
parent 733d5a9bb1
commit 02247d13bb
1 changed files with 2 additions and 1 deletions

View File

@ -3400,8 +3400,9 @@ int rstate; /* (reduced state, without ShiftMask) */
xctx->mx_double_save=xctx->mousex_snap;
xctx->my_double_save=xctx->mousey_snap;
if(!xctx->intuitive_interface && !(state & (ShiftMask | ControlMask) )) unselect_all(1);
sel = select_object(xctx->mousex, xctx->mousey, SELECTED, 0);
if(!sel.type && !(state & (ShiftMask | ControlMask) ) ) unselect_all(1);
if(xctx->intuitive_interface && !sel.type && !(state & (ShiftMask | ControlMask) ) ) unselect_all(1);
rebuild_selected_array();
if(xctx->lastsel == 1 && xctx->sel_array[0].type==POLYGON)