mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Memory optimization in PreviewCanvas: don't keep additional meshes in memory when not needed
This commit is contained in:
parent
64c9e3af4b
commit
4c7d9dfef5
3 changed files with 23 additions and 16 deletions
|
@ -87,6 +87,7 @@ sub new {
|
|||
my $canvas;
|
||||
if ($Slic3r::GUI::have_OpenGL) {
|
||||
$canvas = $self->{canvas} = Slic3r::GUI::PreviewCanvas->new($self);
|
||||
$canvas->enable_cutting(1);
|
||||
$canvas->load_object($self->{model_object});
|
||||
$canvas->set_auto_bed_shape;
|
||||
$canvas->SetSize([500,500]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue