fix build failure with old Coin3d versions

This commit is contained in:
wmayer
2019-01-14 10:10:15 +01:00
parent e5a1f3b496
commit dff1832255

View File

@@ -383,10 +383,11 @@ void CameraDialog::on_currentView_clicked()
View3DInventor* mdi = qobject_cast<View3DInventor*>(getMainWindow()->activeWindow());
if (mdi) {
SbRotation rot = mdi->getViewer()->getCameraOrientation();
sb0->setValue(rot[0]);
sb1->setValue(rot[1]);
sb2->setValue(rot[2]);
sb3->setValue(rot[3]);
const float* q = rot.getValue();
sb0->setValue(q[0]);
sb1->setValue(q[1]);
sb2->setValue(q[2]);
sb3->setValue(q[3]);
}
}