Add trackSourceFiles param to conditionally set MeshPath on targets

This commit is contained in:
John Lewin 2017-12-19 14:49:48 -08:00
parent 505bf0ba16
commit 80278f130b
2 changed files with 4 additions and 3 deletions

View file

@ -877,7 +877,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
}
private void StartDragDrop(IEnumerable<ILibraryItem> items, Vector2 screenSpaceMousePosition)
private void StartDragDrop(IEnumerable<ILibraryItem> items, Vector2 screenSpaceMousePosition, bool trackSourceFiles = false)
{
this.DragOperationActive = true;
@ -904,7 +904,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this,
this.Scene,
sceneContext.BedCenter,
() => this.DragOperationActive);
() => this.DragOperationActive,
trackSourceFiles);
// Find intersection position of the mouse with the bed plane
var intersectInfo = GetIntersectPosition(screenSpaceMousePosition);