make ctrl+select select single stud again
This commit is contained in:
		| @@ -145,7 +145,10 @@ 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); | 			 | ||||||
|  | 			if(%client.ndInitialMultiSelect) | ||||||
|  | 				%box2 = ndGetPlateBoxFromRayCast(%pos, %normal); | ||||||
|  | 			else | ||||||
| 				%box2 = %obj.getWorldBox(); | 				%box2 = %obj.getWorldBox(); | ||||||
|  |  | ||||||
| 			%p1 = getMin(getWord(%box1, 0), getWord(%box2, 0)) | 			%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); | 		%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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Redo
					Redo