From dff1832255ecd003920fb930b2171e2ba346a8ee Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 14 Jan 2019 10:10:15 +0100 Subject: [PATCH] fix build failure with old Coin3d versions --- src/Gui/DlgSettings3DViewImp.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Gui/DlgSettings3DViewImp.cpp b/src/Gui/DlgSettings3DViewImp.cpp index 7c2fe64beb..93c58eb16a 100644 --- a/src/Gui/DlgSettings3DViewImp.cpp +++ b/src/Gui/DlgSettings3DViewImp.cpp @@ -383,10 +383,11 @@ void CameraDialog::on_currentView_clicked() View3DInventor* mdi = qobject_cast(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]); } }