Took out all the strange logic around moving the world position rather than having a center of rotation
This commit is contained in:
parent
25abae93ca
commit
6220b149d4
8 changed files with 46 additions and 87 deletions
|
|
@ -401,8 +401,8 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
lines.Clear();
|
||||
Vector3 otherSideDelta = GetDeltaToOtherSideXy(selectedItem, edgeIndex);
|
||||
var cornerPosition = GetCornerPosition(selectedItem, edgeIndex);
|
||||
var screen1 = Object3DControlContext.World.GetScreenSpace(cornerPosition);
|
||||
var screen2 = Object3DControlContext.World.GetScreenSpace(GetCornerPosition(selectedItem, (edgeIndex + 1) % 4));
|
||||
var screen1 = Object3DControlContext.World.WorldToScreenSpace(cornerPosition);
|
||||
var screen2 = Object3DControlContext.World.WorldToScreenSpace(GetCornerPosition(selectedItem, (edgeIndex + 1) % 4));
|
||||
|
||||
if (screen1.Z < screen2.Z)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue