Skip to content

Commit

Permalink
Fixed 3D preview not updated after g-code export
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoturri1966 committed Jul 13, 2018
1 parent b2d9877 commit 06613e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Slic3r/GUI/Plater.pm
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ sub new {
if (($preview != $self->{preview3D}) && ($preview != $self->{canvas3D})) {
$preview->OnActivate if $preview->can('OnActivate');
} elsif ($preview == $self->{preview3D}) {
$self->{preview3D}->load_print;
$self->{preview3D}->reload_print;
# sets the canvas as dirty to force a render at the 1st idle event (wxWidgets IsShownOnScreen() is buggy and cannot be used reliably)
Slic3r::GUI::_3DScene::set_as_dirty($self->{preview3D}->canvas);
} elsif ($preview == $self->{canvas3D}) {
Expand Down

0 comments on commit 06613e4

Please sign in to comment.