mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 19:56:05 +08:00
Added canvas refresh utility function. Additional previews/canvases should update here.
This commit is contained in:
parent
bc311474a2
commit
98d4e9a6c5
@ -296,5 +296,14 @@ int Plater::get_object_index(size_t object_id) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
void Plater::refresh_canvases() {
|
||||
if (this->canvas2D != nullptr)
|
||||
this->canvas2D->Refresh();
|
||||
if (this->canvas3D != nullptr)
|
||||
this->canvas3D->update();
|
||||
if (this->preview3D != nullptr)
|
||||
this->preview3D->reload_print();
|
||||
|
||||
}
|
||||
}} // Namespace Slic3r::GUI
|
||||
|
||||
|
@ -84,6 +84,7 @@ private:
|
||||
auto bed_shape { Slic3r::Polygon::new_scale(this->config->get<ConfigOptionPoints>("bed_shape").values) };
|
||||
return Slic3r::Pointf();
|
||||
}
|
||||
void refresh_canvases();
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user