Added GitHub Personal Access Token support
Improving Image Search and Description
This commit is contained in:
parent
a23857c6eb
commit
3e9fdb90e6
5 changed files with 72 additions and 102 deletions
|
|
@ -144,6 +144,16 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
private Vector2 widgetDownPosition;
|
||||
|
||||
public void AddObject3DControls(Object3DControlsLayer object3DControlsLayer)
|
||||
{
|
||||
EnsureTracedPositionControl(object3DControlsLayer);
|
||||
|
||||
object3DControlsLayer.Object3DControls.Modify((list) =>
|
||||
{
|
||||
list.Add(tracedPositionControl);
|
||||
});
|
||||
}
|
||||
|
||||
private void EnsureTracedPositionControl(Object3DControlsLayer object3DControlsLayer)
|
||||
{
|
||||
if (tracedPositionControl == null)
|
||||
{
|
||||
|
|
@ -164,11 +174,6 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
object3DControlsLayer.Object3DControls.Modify((list) =>
|
||||
{
|
||||
list.Add(tracedPositionControl);
|
||||
});
|
||||
}
|
||||
|
||||
public override void Remove(UndoBuffer undoBuffer)
|
||||
|
|
@ -229,6 +234,8 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
|
||||
public void DrawEditor(Object3DControlsLayer controlLayer, List<Object3DView> transparentMeshes, DrawEventArgs e)
|
||||
{
|
||||
EnsureTracedPositionControl(controlLayer);
|
||||
|
||||
var world = controlLayer.World;
|
||||
|
||||
if (!PositionHasBeenSet)
|
||||
|
|
@ -237,7 +244,6 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
LocalPosition = new Vector3(aabb.MinXYZ.X, aabb.MaxXYZ.Y, aabb.MaxXYZ.Z);
|
||||
}
|
||||
|
||||
|
||||
var start = worldPosition;
|
||||
|
||||
var screenStart = world.GetScreenPosition(start);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue