make ctrl+select select single stud again
This commit is contained in:
parent
dc7f27512a
commit
3c87c8f7d9
@ -145,8 +145,11 @@ function NDM_BoxSelect::onSelectObject(%this, %client, %obj, %pos, %normal)
|
|||||||
if(%client.ndMultiSelect)
|
if(%client.ndMultiSelect)
|
||||||
{
|
{
|
||||||
%box1 = %client.ndSelectionBox.getWorldBox();
|
%box1 = %client.ndSelectionBox.getWorldBox();
|
||||||
//%box2 = ndGetPlateBoxFromRayCast(%pos, %normal);
|
|
||||||
%box2 = %obj.getWorldBox();
|
if(%client.ndInitialMultiSelect)
|
||||||
|
%box2 = ndGetPlateBoxFromRayCast(%pos, %normal);
|
||||||
|
else
|
||||||
|
%box2 = %obj.getWorldBox();
|
||||||
|
|
||||||
%p1 = getMin(getWord(%box1, 0), getWord(%box2, 0))
|
%p1 = getMin(getWord(%box1, 0), getWord(%box2, 0))
|
||||||
SPC getMin(getWord(%box1, 1), getWord(%box2, 1))
|
SPC getMin(getWord(%box1, 1), getWord(%box2, 1))
|
||||||
@ -174,10 +177,11 @@ function NDM_BoxSelect::onSelectObject(%this, %client, %obj, %pos, %normal)
|
|||||||
|
|
||||||
%client.ndSelectionBox = ND_SelectionBox(%shapeName);
|
%client.ndSelectionBox = ND_SelectionBox(%shapeName);
|
||||||
|
|
||||||
// if(%client.ndMultiSelect)
|
if(%client.ndMultiSelect)
|
||||||
// %box = ndGetPlateBoxFromRayCast(%pos, %normal);
|
%box = ndGetPlateBoxFromRayCast(%pos, %normal);
|
||||||
// else
|
else
|
||||||
%box = %obj.getWorldBox();
|
%box = %obj.getWorldBox();
|
||||||
|
%client.ndInitialMultiSelect = %client.ndMultiSelect;
|
||||||
|
|
||||||
%p1 = getWords(%box, 0, 2);
|
%p1 = getWords(%box, 0, 2);
|
||||||
%p2 = getWords(%box, 3, 5);
|
%p2 = getWords(%box, 3, 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user