mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: support default filament for volumes
Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: I51cfb0e3a40578f94c6d20e85c12cda2b6bb2e74
This commit is contained in:
@@ -313,11 +313,16 @@ wxWindow* BitmapChoiceRenderer::CreateEditorCtrl(wxWindow* parent, wxRect labelR
|
||||
labelRect.GetTopLeft(), wxSize(labelRect.GetWidth(), -1),
|
||||
0, nullptr, wxCB_READONLY | CB_NO_DROP_ICON | CB_NO_TEXT);
|
||||
c_editor->GetDropDown().SetUseContentWidth(true);
|
||||
|
||||
// BBS
|
||||
int def_id = get_default_extruder_idx ? get_default_extruder_idx() : 0;
|
||||
wxBitmap* default_icon = get_extruder_color_icon(def_id, true);
|
||||
if (is_volume_selected())
|
||||
c_editor->Append("default", *default_icon);
|
||||
for (size_t i = 0; i < icons.size(); i++)
|
||||
c_editor->Append(wxString::Format("%d", i+1), *icons[i]);
|
||||
|
||||
c_editor->SetSelection(atoi(data.GetText().c_str()) - 1);
|
||||
c_editor->SetSelection(atoi(data.GetText().c_str()));
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
Reference in New Issue
Block a user