Fixed 3D preview not updated after g-code export
This commit is contained in:
parent
b2d9877cd5
commit
06613e4792
@ -203,7 +203,7 @@ sub new {
|
|||||||
if (($preview != $self->{preview3D}) && ($preview != $self->{canvas3D})) {
|
if (($preview != $self->{preview3D}) && ($preview != $self->{canvas3D})) {
|
||||||
$preview->OnActivate if $preview->can('OnActivate');
|
$preview->OnActivate if $preview->can('OnActivate');
|
||||||
} elsif ($preview == $self->{preview3D}) {
|
} 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)
|
# 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);
|
Slic3r::GUI::_3DScene::set_as_dirty($self->{preview3D}->canvas);
|
||||||
} elsif ($preview == $self->{canvas3D}) {
|
} elsif ($preview == $self->{canvas3D}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user