make ctrl+select select single stud again

This commit is contained in:
Redo 2022-10-16 20:14:09 -06:00
parent dc7f27512a
commit 3c87c8f7d9

View File

@ -145,7 +145,10 @@ function NDM_BoxSelect::onSelectObject(%this, %client, %obj, %pos, %normal)
if(%client.ndMultiSelect)
{
%box1 = %client.ndSelectionBox.getWorldBox();
//%box2 = ndGetPlateBoxFromRayCast(%pos, %normal);
if(%client.ndInitialMultiSelect)
%box2 = ndGetPlateBoxFromRayCast(%pos, %normal);
else
%box2 = %obj.getWorldBox();
%p1 = getMin(getWord(%box1, 0), getWord(%box2, 0))
@ -174,10 +177,11 @@ function NDM_BoxSelect::onSelectObject(%this, %client, %obj, %pos, %normal)
%client.ndSelectionBox = ND_SelectionBox(%shapeName);
// if(%client.ndMultiSelect)
// %box = ndGetPlateBoxFromRayCast(%pos, %normal);
// else
if(%client.ndMultiSelect)
%box = ndGetPlateBoxFromRayCast(%pos, %normal);
else
%box = %obj.getWorldBox();
%client.ndInitialMultiSelect = %client.ndMultiSelect;
%p1 = getWords(%box, 0, 2);
%p2 = getWords(%box, 3, 5);