mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Update extruder value for adding objects
This commit is contained in:
parent
d7db1cdc73
commit
05fef33b10
3 changed files with 10 additions and 5 deletions
|
@ -454,9 +454,10 @@ PrusaObjectDataViewModel::~PrusaObjectDataViewModel()
|
|||
m_bitmap_cache = nullptr;
|
||||
}
|
||||
|
||||
wxDataViewItem PrusaObjectDataViewModel::Add(const wxString &name)
|
||||
wxDataViewItem PrusaObjectDataViewModel::Add(const wxString &name, const int extruder)
|
||||
{
|
||||
auto root = new PrusaObjectDataViewModelNode(name);
|
||||
const wxString extruder_str = extruder == 0 ? "default" : wxString::Format("%d", extruder);
|
||||
auto root = new PrusaObjectDataViewModelNode(name, extruder_str);
|
||||
m_objects.push_back(root);
|
||||
// notify control
|
||||
wxDataViewItem child((void*)root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue