mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 11:02:08 +00:00
Memory optimization in PreviewCanvas: don't keep additional meshes in memory when not needed
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user