Added canvas refresh utility function. Additional previews/canvases should update here.

This commit is contained in:
Joseph Lenox 2018-05-06 22:43:02 -05:00
parent bc311474a2
commit 98d4e9a6c5
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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();
};