mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Meaningful error when user wants to use 3D preview but didn't install the required modules.
This commit is contained in:
@@ -1079,6 +1079,11 @@ sub object_preview_dialog {
|
||||
($obj_idx, undef) = $self->selected_object;
|
||||
}
|
||||
|
||||
if (!$Slic3r::GUI::have_OpenGL) {
|
||||
Slic3r::GUI::show_error($self, "Please install the OpenGL modules to use this feature (see build instructions).");
|
||||
return;
|
||||
}
|
||||
|
||||
my $dlg = Slic3r::GUI::Plater::ObjectPreviewDialog->new($self,
|
||||
object => $self->{objects}[$obj_idx],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user