Fix of interaction between opengl contexts and main page notebook

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

No files matched your search

+4 -2
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);