Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2019-04-25 10:46:26 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-04-25 10:46:26 +0300
commit11490dfb066e56829a6a11d63d29cde7d0956846 (patch)
tree9ae694cc38cf5137c9a3cdf9f3b961675a038537 /src/slic3r/GUI/GLSelectionRectangle.cpp
parentec2f319a3d7cce7958a750e142d06c3921e7bf84 (diff)
Rectangle selection in 3D scene -> hovering detection
Diffstat (limited to 'src/slic3r/GUI/GLSelectionRectangle.cpp')
-rw-r--r--src/slic3r/GUI/GLSelectionRectangle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/slic3r/GUI/GLSelectionRectangle.cpp b/src/slic3r/GUI/GLSelectionRectangle.cpp
index 03ee7e1f6..9684bb5ec 100644
--- a/src/slic3r/GUI/GLSelectionRectangle.cpp
+++ b/src/slic3r/GUI/GLSelectionRectangle.cpp
@@ -59,10 +59,8 @@ namespace GUI {
void GLSelectionRectangle::stop_dragging()
{
- if (!is_dragging())
- return;
-
- m_state = Off;
+ if (is_dragging())
+ m_state = Off;
}
void GLSelectionRectangle::render(const GLCanvas3D& canvas) const