Fix of interaction between opengl contexts and main page notebook

This commit is contained in:
Enrico Turri 2018-06-25 15:17:13 +02:00
parent 515502e685
commit 40b327eb11
9 changed files with 99 additions and 28 deletions

View file

@ -231,8 +231,10 @@ sub mouse_event {
}
$self->Refresh;
} elsif ($event->LeftUp) {
$self->{on_instances_moved}->()
if $self->{drag_object};
if ($self->{drag_object}) {
$self->{on_instances_moved}->();
Slic3r::GUI::_3DScene::reset_current_canvas();
}
$self->{drag_start_pos} = undef;
$self->{drag_object} = undef;
$self->SetCursor(wxSTANDARD_CURSOR);