mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-04 05:15:12 +08:00
Get rid of demo timer in PreviewCanvas
This commit is contained in:
parent
9d1b756135
commit
47b2c13c99
@ -28,9 +28,6 @@ sub new {
|
|||||||
$self->norms(OpenGL::Array->new_list(GL_FLOAT, @norms));
|
$self->norms(OpenGL::Array->new_list(GL_FLOAT, @norms));
|
||||||
}
|
}
|
||||||
|
|
||||||
my $timer = $self->timer( Wx::Timer->new($self) );
|
|
||||||
$timer->Start(50);
|
|
||||||
|
|
||||||
$self->x_rot(0);
|
$self->x_rot(0);
|
||||||
$self->y_rot(0);
|
$self->y_rot(0);
|
||||||
|
|
||||||
@ -45,15 +42,6 @@ sub new {
|
|||||||
$self->Resize( $self->GetSizeWH );
|
$self->Resize( $self->GetSizeWH );
|
||||||
$self->Refresh;
|
$self->Refresh;
|
||||||
});
|
});
|
||||||
EVT_TIMER($self, -1, sub {
|
|
||||||
my ($self, $e) = @_;
|
|
||||||
|
|
||||||
$self->x_rot( $self->x_rot - 1 );
|
|
||||||
$self->y_rot( $self->y_rot + 2 );
|
|
||||||
|
|
||||||
$self->dirty(1);
|
|
||||||
Wx::WakeUpIdle;
|
|
||||||
});
|
|
||||||
EVT_MOUSEWHEEL($self, sub {
|
EVT_MOUSEWHEEL($self, sub {
|
||||||
my ($self, $e) = @_;
|
my ($self, $e) = @_;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user