Skip to content

Commit

Permalink
Merge branch 'main' into dremel
Browse files Browse the repository at this point in the history
  • Loading branch information
cochcoder authored Apr 22, 2024
2 parents abbafb9 + d163cea commit d96e5d4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/slic3r/GUI/GUI_ObjectList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5025,8 +5025,17 @@ void ObjectList::change_part_type()
}
}

const wxString names[] = { _L("Part"), _L("Negative Part"), _L("Modifier"), _L("Support Blocker"), _L("Support Enforcer") };
SingleChoiceDialog dlg(_L("Type:"), _L("Choose part type"), wxArrayString(5, names), int(type));
// ORCA: Fix crash when changing type of svg / text modifier
wxArrayString names;
names.Add(_L("Part"));
names.Add(_L("Negative Part"));
names.Add(_L("Modifier"));
if (!volume->is_svg() && !volume->is_text()) {
names.Add(_L("Support Blocker"));
names.Add(_L("Support Enforcer"));
}

SingleChoiceDialog dlg(_L("Type:"), _L("Choose part type"), names, int(type));
auto new_type = ModelVolumeType(dlg.GetSingleChoiceIndex());

if (new_type == type || new_type == ModelVolumeType::INVALID)
Expand Down

0 comments on commit d96e5d4

Please sign in to comment.