mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Forcing a print bed update after config or config bundle is loaded.
The solution is hackish, but a major refactoring would be needed to avoid multiple refreshes of the print bed, and to avoid expensive checks at Plater::on_config_change() every time a config value changes at a parameter tab.
This commit is contained in:
@@ -5376,6 +5376,13 @@ void Plater::force_filament_colors_update()
|
||||
this->p->schedule_background_process();
|
||||
}
|
||||
|
||||
void Plater::force_print_bed_update()
|
||||
{
|
||||
// Fill in the printer model key with something which cannot possibly be valid, so that Plater::on_config_change() will update the print bed
|
||||
// once a new Printer profile config is loaded.
|
||||
p->config->opt_string("printer_model", true) = "\x01\x00\x01";
|
||||
}
|
||||
|
||||
void Plater::on_activate()
|
||||
{
|
||||
#ifdef __linux__
|
||||
@@ -5392,11 +5399,6 @@ void Plater::on_activate()
|
||||
this->p->show_delayed_error_message();
|
||||
}
|
||||
|
||||
const DynamicPrintConfig* Plater::get_plater_config() const
|
||||
{
|
||||
return p->config;
|
||||
}
|
||||
|
||||
// Get vector of extruder colors considering filament color, if extruder color is undefined.
|
||||
std::vector<std::string> Plater::get_extruder_colors_from_plater_config() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user