mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
GLCanvas3D -> added support for cursor change and change cursor when using SLA support gizmo rectangle selection
This commit is contained in:
parent
9710140948
commit
d79a2b8d2d
7 changed files with 79 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue