Removed unneeded scene reloads when selecting objects

This commit is contained in:
Enrico Turri 2018-05-02 13:55:04 +02:00
parent e9b83a20d0
commit e2e4310322
5 changed files with 34 additions and 12 deletions

View file

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