Gui: PR6497 move return statement to new line
This commit is contained in:
@@ -140,7 +140,8 @@ float DemoMode::getSpeed(int v) const
|
||||
SbVec3f DemoMode::getDirection(Gui::View3DInventor* view) const
|
||||
{
|
||||
SoCamera* cam = view->getViewer()->getSoRenderManager()->getCamera();
|
||||
if (!cam) return this->viewAxis;
|
||||
if (!cam)
|
||||
return this->viewAxis;
|
||||
SbRotation rot = cam->orientation.getValue();
|
||||
SbRotation inv = rot.inverse();
|
||||
SbVec3f vec(this->viewAxis);
|
||||
@@ -156,7 +157,8 @@ void DemoMode::on_angleSlider_valueChanged(int v)
|
||||
Gui::View3DInventor* view = activeView();
|
||||
if (view) {
|
||||
SoCamera* cam = view->getViewer()->getSoRenderManager()->getCamera();
|
||||
if (!cam) return;
|
||||
if (!cam)
|
||||
return;
|
||||
float angle = Base::toRadians<float>(/*90-v*/v - this->oldvalue);
|
||||
SbRotation rot(SbVec3f(-1, 0, 0), angle);
|
||||
reorientCamera(cam ,rot);
|
||||
|
||||
Reference in New Issue
Block a user