From 19ed00f871c19ca04f79d84251c151abc0350f0d Mon Sep 17 00:00:00 2001 From: Anton Piccardo-Selg Date: Fri, 17 Apr 2015 16:43:30 +0100 Subject: [PATCH] Refs #11532 Fixes interaction mode in splatter plot --- .../ViewWidgets/src/SplatterPlotView.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp index 23febca5b0ba..fb7b4c196d8e 100644 --- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp +++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -242,6 +243,16 @@ void SplatterPlotView::render() } emit this->triggerAccept(); + if (vtkSMProxy* viewProxy = this->getView()->getProxy()) + { + vtkSMPropertyHelper helper(viewProxy, "InteractionMode"); + if (helper.GetAsInt() == vtkPVRenderView::INTERACTION_MODE_2D) + { + helper.Set(vtkPVRenderView::INTERACTION_MODE_3D); + viewProxy->UpdateProperty("InteractionMode",1); + this->resetCamera(); + } + } } void SplatterPlotView::renderAll()