Replace abf918e728
with a better fix
This commit is contained in:
parent
e4ee0d927d
commit
bb8a001963
2 changed files with 5 additions and 11 deletions
|
@ -2176,16 +2176,9 @@ void Selection::update_type()
|
|||
unsigned int instances_count = (unsigned int)model_object->instances.size();
|
||||
if (volumes_count * instances_count == 1) {
|
||||
const ModelVolume* model_volume = model_object->volumes[first->volume_idx()];
|
||||
if (model_volume->text_configuration.has_value()) { // text volume
|
||||
m_type = SingleVolume;
|
||||
// ensures the correct mode is selected
|
||||
m_mode = Volume;
|
||||
}
|
||||
else {
|
||||
m_type = SingleFullObject;
|
||||
// ensures the correct mode is selected
|
||||
m_mode = Instance;
|
||||
}
|
||||
m_type = SingleFullObject;
|
||||
// ensures the correct mode is selected
|
||||
m_mode = Instance;
|
||||
}
|
||||
else if (volumes_count == 1) { // instances_count > 1
|
||||
m_type = SingleFullInstance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue