contrib: Remove temp-hpr-fix from contrib/sceneeditor

This commit is contained in:
Disyer 2022-07-18 10:49:10 +03:00 committed by rdb
parent 0380a60e58
commit 62203fb299
2 changed files with 3 additions and 12 deletions

View File

@ -281,10 +281,7 @@ class DirectCameraControl(DirectObject):
angle = getCrankAngle(state.coaCenter)
deltaAngle = angle - state.lastAngle
state.lastAngle = angle
if base.config.GetBool('temp-hpr-fix',0):
self.camManipRef.setHpr(self.camManipRef, 0, 0, deltaAngle)
else:
self.camManipRef.setHpr(self.camManipRef, 0, 0, -deltaAngle)
self.camManipRef.setHpr(self.camManipRef, 0, 0, deltaAngle)
SEditor.camera.setTransform(self.camManipRef, wrt)
return Task.cont

View File

@ -324,10 +324,7 @@ class DirectManipulationControl(DirectObject):
if self.rotateAxis == 'x':
SEditor.widget.setP(SEditor.widget, deltaAngle)
elif self.rotateAxis == 'y':
if base.config.GetBool('temp-hpr-fix',0):
SEditor.widget.setR(SEditor.widget, deltaAngle)
else:
SEditor.widget.setR(SEditor.widget, -deltaAngle)
SEditor.widget.setR(SEditor.widget, deltaAngle)
elif self.rotateAxis == 'z':
SEditor.widget.setH(SEditor.widget, deltaAngle)
# Record crank angle for next time around
@ -456,10 +453,7 @@ class DirectManipulationControl(DirectObject):
deltaAngle = angle - state.lastAngle
state.lastAngle = angle
# Mouse motion edge to edge of display region results in one full turn
if base.config.GetBool('temp-hpr-fix',0):
relHpr(SEditor.widget, SEditor.camera, 0, 0, -deltaAngle)
else:
relHpr(SEditor.widget, SEditor.camera, 0, 0, deltaAngle)
relHpr(SEditor.widget, SEditor.camera, 0, 0, -deltaAngle)
def scale3D(self, state):
# Scale the selected node based upon up down mouse motion