mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Rectangle selection in 3D scene -> hovering detection
This commit is contained in:
parent
ec2f319a3d
commit
11490dfb06
6 changed files with 148 additions and 26 deletions
|
@ -225,7 +225,8 @@ private:
|
|||
class GLVolume {
|
||||
public:
|
||||
static const float SELECTED_COLOR[4];
|
||||
static const float HOVER_COLOR[4];
|
||||
static const float HOVER_SELECT_COLOR[4];
|
||||
static const float HOVER_DESELECT_COLOR[4];
|
||||
static const float OUTSIDE_COLOR[4];
|
||||
static const float SELECTED_OUTSIDE_COLOR[4];
|
||||
static const float DISABLED_COLOR[4];
|
||||
|
@ -296,8 +297,10 @@ public:
|
|||
bool shader_outside_printer_detection_enabled;
|
||||
// Wheter or not this volume is outside print volume.
|
||||
bool is_outside;
|
||||
// Boolean: Is mouse over this object?
|
||||
bool hover;
|
||||
// Boolean: Is mouse over this object to select it ?
|
||||
bool hover_select;
|
||||
// Boolean: Is mouse over this object to deselect it ?
|
||||
bool hover_deselect;
|
||||
// Wheter or not this volume has been generated from a modifier
|
||||
bool is_modifier;
|
||||
// Wheter or not this volume has been generated from the wipe tower
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue