From a90e15ea14237f4f43fe22296b65f27ee35e4c7d Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 12 Jul 2017 22:12:08 -0700 Subject: [PATCH] Remove unused collisionVolume constructor parameter --- PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs | 2 +- PartPreviewWindow/View3D/Gui3D/SelectionShadow.cs | 2 +- PartPreviewWindow/View3D/Gui3D/SnapingIndicator.cs | 2 +- PartPreviewWindow/View3D/InteractionVolume.cs | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs b/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs index f4f44ff08..288996303 100644 --- a/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs +++ b/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs @@ -63,7 +63,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow private bool HadClickOnControl; public MoveInZControl(IInteractionVolumeContext context) - : base(null, context) + : base(context) { zHeightDisplayInfo = new ValueDisplayInfo() { diff --git a/PartPreviewWindow/View3D/Gui3D/SelectionShadow.cs b/PartPreviewWindow/View3D/Gui3D/SelectionShadow.cs index e06f3dfcd..92d95892b 100644 --- a/PartPreviewWindow/View3D/Gui3D/SelectionShadow.cs +++ b/PartPreviewWindow/View3D/Gui3D/SelectionShadow.cs @@ -53,7 +53,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow public SelectionShadow(IInteractionVolumeContext context) - : base(null, context) + : base(context) { } diff --git a/PartPreviewWindow/View3D/Gui3D/SnapingIndicator.cs b/PartPreviewWindow/View3D/Gui3D/SnapingIndicator.cs index b7d173704..8e229d20e 100644 --- a/PartPreviewWindow/View3D/Gui3D/SnapingIndicator.cs +++ b/PartPreviewWindow/View3D/Gui3D/SnapingIndicator.cs @@ -44,7 +44,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow private MeshSelectInfo meshSelectInfo; public SnappingIndicators(IInteractionVolumeContext context, MeshSelectInfo currentSelectInfo) - : base(null, context) + : base(context) { this.DrawOnTop = true; this.meshSelectInfo = currentSelectInfo; diff --git a/PartPreviewWindow/View3D/InteractionVolume.cs b/PartPreviewWindow/View3D/InteractionVolume.cs index d8a9b3f06..f4c2a1c7b 100644 --- a/PartPreviewWindow/View3D/InteractionVolume.cs +++ b/PartPreviewWindow/View3D/InteractionVolume.cs @@ -50,9 +50,8 @@ namespace MatterHackers.MeshVisualizer private bool mouseOver = false; - public InteractionVolume(IPrimitive collisionVolume, IInteractionVolumeContext meshViewerToDrawWith) + public InteractionVolume(IInteractionVolumeContext meshViewerToDrawWith) { - this.CollisionVolume = collisionVolume; this.InteractionContext = meshViewerToDrawWith; }