FIX: Restore material number and color display in “Filament for Supports” menu

jira: STUDIO-13670

Change-Id: I1779aedc84d5ef5d9e59dd75a164d02b4274a78a
(cherry picked from commit 8f361ab2a68a2eeabc4b1994b93f749cfbd668d3)
This commit is contained in:
fei2.fang 2025-08-04 16:03:47 +08:00 committed by Noisyfox
parent eeb8b2111c
commit f60a6f8490

View file

@ -756,9 +756,9 @@ struct DynamicFilamentList : DynamicList
cb->Clear();
cb->Append(_L("Default"));
for (auto i : items) {
cb->Append(i.first, *i.second);
cb->Append(i.first, i.second ? *i.second : wxNullBitmap);
}
if (n < cb->GetCount())
if ((unsigned int)n < cb->GetCount())
cb->SetSelection(n);
}
wxString get_value(int index) override