Removed unneeded scene reloads when selecting objects

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

No files matched your search

+5 -1
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);