Object3DControls are dynamically added for a given part
This commit is contained in:
parent
77ec3d5909
commit
a35347df4a
17 changed files with 143 additions and 197 deletions
|
|
@ -455,7 +455,7 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
base.CancelOperation();
|
||||
}
|
||||
|
||||
public override void SetPosition(IObject3D selectedItem)
|
||||
public override void SetPosition(IObject3D selectedItem, MeshSelectInfo selectInfo)
|
||||
{
|
||||
Vector3 boxCenter = GetControlCenter(selectedItem);
|
||||
double distBetweenPixelsWorldSpace = Object3DControlContext.World.GetWorldUnitsPerScreenPixelAtPosition(boxCenter);
|
||||
|
|
@ -847,6 +847,11 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
selectedItem.Matrix = selectedItem.Matrix.ApplyAtPosition(mouseDownInfo.SelectedObjectRotationCenter, rotationMatrix);
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
angleTextControl.Close();
|
||||
}
|
||||
|
||||
internal class Mouse3DInfo
|
||||
{
|
||||
internal Mouse3DInfo(Vector3 downPosition, Matrix4X4 selectedObjectTransform, Vector3 selectedObjectRotationCenter, Vector3 controlCenter, int rotationAxis)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue