Force cameraPosition() to return Vector class. (#1799)
* Update GLViewWidget.py Fix the wrong conversion of QVector3D to numpy array. * new way to fix the conversion error * Recover prev. version of pixelSize Co-authored-by: Jaeyoon Jeong <diem389@gmail.com>
This commit is contained in:
parent
e29f86578f
commit
28b1499f09
@ -314,7 +314,7 @@ class GLViewWidget(QtWidgets.QOpenGLWidget):
|
|||||||
center = self.opts['center']
|
center = self.opts['center']
|
||||||
dist = self.opts['distance']
|
dist = self.opts['distance']
|
||||||
if self.opts['rotationMethod'] == "quaternion":
|
if self.opts['rotationMethod'] == "quaternion":
|
||||||
pos = center - self.opts['rotation'].rotatedVector( Vector(0,0,dist) )
|
pos = Vector(center - self.opts['rotation'].rotatedVector(Vector(0,0,dist) ))
|
||||||
else:
|
else:
|
||||||
# using 'euler' rotation method
|
# using 'euler' rotation method
|
||||||
elev = radians(self.opts['elevation'])
|
elev = radians(self.opts['elevation'])
|
||||||
|
Loading…
Reference in New Issue
Block a user