Skip to content

Commit

Permalink
Bugfix - AttributeError: 'list' object has no attribute 'x'
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHahner committed Aug 24, 2020
1 parent db269b1 commit 8460912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/DatasetViewer/DataViewer_V2.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def initUI(self):
# self.showMaximized()

self.w = gl.GLViewWidget()
self.w.setCameraPosition(pos=[0, 0, 0], distance=10, azimuth=180, elevation=10)
self.w.setCameraPosition(pos=QtGui.QVector3D(0, 0, 0), distance=10, azimuth=180, elevation=10)
self.initComboBoxes()

self.update_sample()
Expand Down Expand Up @@ -694,7 +694,7 @@ def editLabelsButton_clicked(self):
self.badSensorCheckBox.setEnabled(True)

def resetViewButton_clicked(self):
self.w.setCameraPosition(pos=[0, 0, 0], distance=10, azimuth=180, elevation=10)
self.w.setCameraPosition(pos=QtGui.QVector3D(0, 0, 0), distance=10, azimuth=180, elevation=10)

def goToIndexEdit_returnPressed(self):
try:
Expand Down

0 comments on commit 8460912

Please sign in to comment.