mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 21:44:08 -06:00
3DScene's idle even handler moved to c++
This commit is contained in:
parent
a12e3c1cc9
commit
986630c2dc
4 changed files with 38 additions and 15 deletions
|
@ -236,16 +236,14 @@ sub new {
|
|||
#=======================================================================================================================
|
||||
# EVT_SIZE($self, sub { $self->_dirty(1) });
|
||||
#=======================================================================================================================
|
||||
EVT_IDLE($self, sub {
|
||||
#==============================================================================================================================
|
||||
return unless Slic3r::GUI::_3DScene::is_dirty($self);
|
||||
return unless Slic3r::GUI::_3DScene::is_shown_on_screen($self);
|
||||
# EVT_IDLE($self, sub {
|
||||
# return unless $self->_dirty;
|
||||
# return if !$self->IsShownOnScreen;
|
||||
# $self->Resize( $self->GetSizeWH );
|
||||
# $self->Refresh;
|
||||
# });
|
||||
#==============================================================================================================================
|
||||
$self->Resize( $self->GetSizeWH );
|
||||
$self->Refresh;
|
||||
});
|
||||
EVT_MOUSEWHEEL($self, \&mouse_wheel_event);
|
||||
EVT_MOUSE_EVENTS($self, \&mouse_event);
|
||||
# EVT_KEY_DOWN($self, sub {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue