mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-23 21:05:31 -07:00
ENH:add "is_filament_installed" in MachineObject
jira: none Change-Id: Ifd71947a742c1ed37fa22bbf0bb2cd538ff47268 (cherry picked from commit 21d1159cd54259fb53c005bbc1cb66b6b3b40c97)
This commit is contained in:
parent
860ea61420
commit
f3bf34ed0c
3 changed files with 24 additions and 1 deletions
|
|
@ -1648,6 +1648,25 @@ int MachineObject::get_bed_temperature_limit()
|
|||
return BED_TEMP_LIMIT;
|
||||
}
|
||||
|
||||
bool MachineObject::is_filament_installed()
|
||||
{
|
||||
if (m_extder_data.extders.size() > 0) {
|
||||
// right//or single
|
||||
auto ext = m_extder_data.extders[MAIN_NOZZLE_ID];
|
||||
if (ext.ext_has_filament) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
/*left*/
|
||||
if (m_extder_data.extders.size() > 1) {
|
||||
auto ext = m_extder_data.extders[DEPUTY_NOZZLE_ID];
|
||||
if (ext.ext_has_filament) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MachineObject::is_makeworld_subtask()
|
||||
{
|
||||
if (model_task && model_task->design_id > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue