Skip to content

Commit e8cdc97

Browse files
committed
ovis: use fix camera yaw axis to -y by default
also remove superficial CS conversion in fixCameraYawAxis
1 parent 25395d5 commit e8cdc97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ovis/src/ovis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ class WindowSceneImpl : public WindowScene
287287
{
288288
camman.reset(new OgreBites::CameraMan(camNode));
289289
camman->setStyle(OgreBites::CS_ORBIT);
290+
camNode->setFixedYawAxis(true, Vector3::NEGATIVE_UNIT_Y);
290291
}
291292

292293
if (!app->sceneMgr)
@@ -541,11 +542,10 @@ class WindowSceneImpl : public WindowScene
541542

542543
void fixCameraYawAxis(bool useFixed, InputArray _up)
543544
{
544-
Vector3 up = Vector3::UNIT_Y;
545+
Vector3 up = Vector3::NEGATIVE_UNIT_Y;
545546
if (!_up.empty())
546547
{
547548
_up.copyTo(Mat_<Real>(3, 1, up.ptr()));
548-
up = toOGRE * up;
549549
}
550550

551551
camNode->setFixedYawAxis(useFixed, up);

0 commit comments

Comments
 (0)