From b1fb64bf685cf74c5548fb5d18b7c260de1d4a5a Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 4 Mar 2016 16:25:30 +0100 Subject: [PATCH] added missing drag mode resets --- apps/opencs/view/render/instancemode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/opencs/view/render/instancemode.cpp b/apps/opencs/view/render/instancemode.cpp index e8a7d95d7..74df6740e 100644 --- a/apps/opencs/view/render/instancemode.cpp +++ b/apps/opencs/view/render/instancemode.cpp @@ -72,6 +72,7 @@ void CSVRender::InstanceMode::activate (CSVWidget::SceneToolbar *toolbar) void CSVRender::InstanceMode::deactivate (CSVWidget::SceneToolbar *toolbar) { + mDragMode = DragMode_None; getWorldspaceWidget().reset (Mask_Reference); if (mSelectionMode) @@ -451,6 +452,7 @@ int CSVRender::InstanceMode::getSubMode() const void CSVRender::InstanceMode::subModeChanged (const std::string& id) { + mDragMode = DragMode_None; getWorldspaceWidget().reset (Mask_Reference); getWorldspaceWidget().setSubMode (getSubModeFromId (id), Mask_Reference); }