mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
New selection -> Changed selection logic == Use SHIFT for both add to selection and remove from selection
This commit is contained in:
parent
70f4ca3f5b
commit
68f77f1031
2 changed files with 5 additions and 7 deletions
|
@ -485,6 +485,8 @@ public:
|
|||
bool is_from_single_instance() const { return get_instance_idx() != -1; }
|
||||
bool is_from_single_object() const { return get_object_idx() != -1; }
|
||||
|
||||
bool contains_volume(unsigned int volume_idx) const { return std::find(m_list.begin(), m_list.end(), volume_idx) != m_list.end(); }
|
||||
|
||||
// Returns the the object id if the selection is from a single object, otherwise is -1
|
||||
int get_object_idx() const;
|
||||
// Returns the instance id if the selection is from a single object and from a single instance, otherwise is -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue