mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 01:22:37 -07:00
GLCanvas3D -> added support for cursor change and change cursor when using SLA support gizmo rectangle selection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user