Merge pull request #770 from cklb/develop

Fix issue #481 - `setCameraPosition` in `GLViewWiedget` ignored `pos` argument
This commit is contained in:
Ogi Moore 2019-06-04 13:29:26 -07:00 committed by GitHub
commit 4a33f24582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,6 +236,8 @@ class GLViewWidget(QtOpenGL.QGLWidget):
glPopMatrix() glPopMatrix()
def setCameraPosition(self, pos=None, distance=None, elevation=None, azimuth=None): def setCameraPosition(self, pos=None, distance=None, elevation=None, azimuth=None):
if pos is not None:
self.opts['center'] = pos
if distance is not None: if distance is not None:
self.opts['distance'] = distance self.opts['distance'] = distance
if elevation is not None: if elevation is not None: