mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Disabled camera rotation with Mouse3 in Maya mode
This commit is contained in:
parent
4e39bfdf13
commit
544a035d34
@ -239,12 +239,16 @@ class DirectCameraControl(DirectObject):
|
|||||||
state.zoomSF))
|
state.zoomSF))
|
||||||
if base.direct.dr.mouseDeltaY > 0.0:
|
if base.direct.dr.mouseDeltaY > 0.0:
|
||||||
moveDir.setY(moveDir[1] * 1.0)
|
moveDir.setY(moveDir[1] * 1.0)
|
||||||
|
|
||||||
|
hVal = 0.5 * base.direct.dr.mouseDeltaX * base.direct.dr.fovH
|
||||||
|
if self.useMayaCamControls : # use maya controls
|
||||||
|
hVal = 0.0
|
||||||
|
|
||||||
base.direct.camera.setPosHpr(base.direct.camera,
|
base.direct.camera.setPosHpr(base.direct.camera,
|
||||||
moveDir[0],
|
moveDir[0],
|
||||||
moveDir[1],
|
moveDir[1],
|
||||||
moveDir[2],
|
moveDir[2],
|
||||||
(0.5 * base.direct.dr.mouseDeltaX *
|
hVal,
|
||||||
base.direct.dr.fovH),
|
|
||||||
0.0, 0.0)
|
0.0, 0.0)
|
||||||
if (self.lockRoll == True):
|
if (self.lockRoll == True):
|
||||||
# flatten roll
|
# flatten roll
|
||||||
|
Loading…
x
Reference in New Issue
Block a user