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-24 16:43:52 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-04-24 16:43:52 +0300
commitd79a2b8d2d0ffd6019330c41e7bb8b1ee59a2f53 (patch)
tree07dae661d79e8d4a0eb02a8fa1bd16b1476abe2c /src/slic3r/GUI/GLSelectionRectangle.cpp
parent97101409487c77b06d66fece7063158d2dcf3e90 (diff)
GLCanvas3D -> added support for cursor change and change cursor when using SLA support gizmo rectangle selection
Diffstat (limited to 'src/slic3r/GUI/GLSelectionRectangle.cpp')
-rw-r--r--src/slic3r/GUI/GLSelectionRectangle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/GUI/GLSelectionRectangle.cpp b/src/slic3r/GUI/GLSelectionRectangle.cpp
index a908d13ec..39b92ff8f 100644
--- a/src/slic3r/GUI/GLSelectionRectangle.cpp
+++ b/src/slic3r/GUI/GLSelectionRectangle.cpp
@@ -9,7 +9,7 @@ namespace GUI {
void GLSelectionRectangle::start_dragging(const Vec2d& mouse_position, float width, float height, EState status)
{
- if (is_active() || status==Off)
+ if (is_dragging() || status == Off)
return;
m_width = width;
@@ -23,7 +23,7 @@ void GLSelectionRectangle::start_dragging(const Vec2d& mouse_position, float wid
void GLSelectionRectangle::dragging(const Vec2d& mouse_position)
{
- if (is_active())
+ if (is_dragging())
m_end_corner = mouse_position;
}
@@ -31,7 +31,7 @@ void GLSelectionRectangle::dragging(const Vec2d& mouse_position)
std::vector<unsigned int> GLSelectionRectangle::end_dragging(const Camera& camera, const std::vector<Vec3d>& points)
{
- if (!is_active())
+ if (!is_dragging())
return std::vector<unsigned int>();
m_status = Off;