mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-29 12:20:50 -07:00
Fix: Change filament for a specific object instance (#11963)
Fix: Crash when setting filament for object instance
This commit is contained in:
parent
cf54ad58ed
commit
d69620a716
1 changed files with 2 additions and 1 deletions
|
|
@ -6127,7 +6127,8 @@ void ObjectList::set_extruder_for_selected_items(const int extruder)
|
|||
* So, if Instance is selected, get its Object item and change it
|
||||
*/
|
||||
ItemType sel_item_type = m_objects_model->GetItemType(sel_item);
|
||||
wxDataViewItem item = (sel_item_type & itInstance) ? m_objects_model->GetObject(item) : sel_item;
|
||||
// ORCA: Fix crash when setting filament for instance (item was used uninitialized)
|
||||
wxDataViewItem item = (sel_item_type & itInstance) ? m_objects_model->GetObject(sel_item) : sel_item;
|
||||
ItemType type = m_objects_model->GetItemType(item);
|
||||
if (type & itVolume) {
|
||||
const int obj_idx = m_objects_model->GetObjectIdByItem(item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue