mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
ENH: change alt behavior for part selection
1. Alt is no long for object/part delection 2. Alt is defined to select part in View3D Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: If0f14f79a321be2d0320a841e15dc973715364ea (cherry picked from commit 9c092f2d20b89470202df037180425b2ecb8ef82)
This commit is contained in:
parent
7a5bca3c30
commit
d14e5c9d59
3 changed files with 9 additions and 2 deletions
|
@ -226,6 +226,7 @@ private:
|
|||
|
||||
// BBS
|
||||
EMode m_volume_selection_mode{ Instance };
|
||||
bool m_volume_selection_locked { false };
|
||||
|
||||
public:
|
||||
Selection();
|
||||
|
@ -343,7 +344,10 @@ public:
|
|||
void translate(unsigned int object_idx, unsigned int instance_idx, const Vec3d& displacement);
|
||||
//BBS: add partplate related logic
|
||||
void notify_instance_update(int object_idx, int instance_idx);
|
||||
void set_volume_selection_mode(EMode mode) { m_volume_selection_mode = mode; }
|
||||
// BBS
|
||||
void set_volume_selection_mode(EMode mode) { if (!m_volume_selection_locked) m_volume_selection_mode = mode; }
|
||||
void lock_volume_selection_mode() { m_volume_selection_locked = true; }
|
||||
void unlock_volume_selection_mode() { m_volume_selection_locked = false; }
|
||||
|
||||
void erase();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue