Fixed issue #481
This commit is contained in:
parent
e5e103de6d
commit
fc5e0cd9f4
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user