mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Prevent warnings when zooming on uninitialized 3D canvas
This commit is contained in:
@@ -379,6 +379,7 @@ sub mouse_to_3d {
|
|||||||
sub ZoomTo {
|
sub ZoomTo {
|
||||||
my ($self, $factor, $tox, $toy) = @_;
|
my ($self, $factor, $tox, $toy) = @_;
|
||||||
|
|
||||||
|
return if !$self->init;
|
||||||
glTranslatef($tox, $toy, 0);
|
glTranslatef($tox, $toy, 0);
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
$self->Zoom($factor);
|
$self->Zoom($factor);
|
||||||
|
|||||||
Reference in New Issue
Block a user