Skip to content

Commit

Permalink
fix issue with shift speedup getting reset on keypresses
Browse files Browse the repository at this point in the history
  • Loading branch information
RenolY2 committed Aug 29, 2019
1 parent 3aaaeed commit ad3f4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewer_widget.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from math import cos, sin, tan, radians
from copy import copy
from copy import copy
import numpy
from OpenGL.GL import *
from PyQt5 import QtCore, QtOpenGL, QtWidgets
Expand Down Expand Up @@ -169,7 +169,7 @@ def on_fov_changed(self,value):

@QtCore.pyqtSlot()
def on_animation_timer_timeout(self):
if QtWidgets.qApp.keyboardModifiers() & QtCore.Qt.ShiftModifier:
if QtCore.Qt.Key_Shift in self.pressed_keys:
movement_speed = 5*self.movement_speed
rotation_speed = 5*self.rotation_speed
else:
Expand Down

0 comments on commit ad3f4dc

Please sign in to comment.