Putting in more tool control

This commit is contained in:
Lars Brubaker 2017-06-18 10:27:55 -07:00
parent 273d47b5f8
commit 3d330038b1
5 changed files with 44 additions and 27 deletions

View file

@ -117,7 +117,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public override void DrawGlContent(EventArgs e)
{
if (MeshViewerToDrawWith.Scene.HasSelection)
if (MeshViewerToDrawWith.Scene.HasSelection
&& MeshViewerToDrawWith.Scene.ShowSelectionShadow)
{
// draw the bounds on the bed
AxisAlignedBoundingBox selectedBounds = MeshViewerToDrawWith.Scene.SelectedItem.GetAxisAlignedBoundingBox(Matrix4X4.Identity);