mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 12:52:07 +00:00
fix crash question when the obj is null
This commit is contained in:
@@ -554,6 +554,9 @@ void ObjectDataViewModel::UpdateBitmapForNode(ObjectDataViewModelNode *node)
|
|||||||
scaled_bitmap_name += std::to_string(vol_type);
|
scaled_bitmap_name += std::to_string(vol_type);
|
||||||
scaled_bitmap_name += (wxGetApp().dark_mode() ? "-dm" : "-lm");
|
scaled_bitmap_name += (wxGetApp().dark_mode() ? "-dm" : "-lm");
|
||||||
|
|
||||||
|
if (!m_bitmap_cache)
|
||||||
|
return;
|
||||||
|
|
||||||
wxBitmap* bmp = m_bitmap_cache->find(scaled_bitmap_name);
|
wxBitmap* bmp = m_bitmap_cache->find(scaled_bitmap_name);
|
||||||
if (bmp == nullptr) {
|
if (bmp == nullptr) {
|
||||||
std::vector<wxBitmap> bmps;
|
std::vector<wxBitmap> bmps;
|
||||||
|
|||||||
Reference in New Issue
Block a user