Initial zoom set to bed extent

This commit is contained in:
Enrico Turri 2018-05-03 09:10:12 +02:00
parent 8ad6053544
commit a02bfdd2bc

View file

@ -1152,11 +1152,7 @@ sub InitGL {
$self->volumes->finalize_geometry(1)
if ($^O eq 'linux' && $self->UseVBOs);
if (scalar @{$self->volumes} > 0) {
$self->zoom_to_volumes;
} else {
$self->zoom_to_bed;
}
$self->zoom_to_bed;
glClearColor(0, 0, 0, 1);
glColor3f(1, 0, 0);