File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,11 @@ class WindowSceneImpl : public WindowScene
319
319
{
320
320
camman.reset (new OgreBites::CameraMan (camNode));
321
321
camman->setStyle (OgreBites::CS_ORBIT);
322
- camNode->setFixedYawAxis (true , Vector3::NEGATIVE_UNIT_Y);
322
+ #if OGRE_VERSION >= ((1 << 16) | (11 << 8) | 5)
323
+ camman->setFixedYaw (false );
324
+ #else
325
+ camNode->setFixedYawAxis (true , Vector3::NEGATIVE_UNIT_Y); // OpenCV +Y in Ogre CS
326
+ #endif
323
327
}
324
328
325
329
if (!app->sceneMgr )
@@ -694,6 +698,10 @@ class WindowSceneImpl : public WindowScene
694
698
695
699
void fixCameraYawAxis (bool useFixed, InputArray _up) CV_OVERRIDE
696
700
{
701
+ #if OGRE_VERSION >= ((1 << 16) | (11 << 8) | 5)
702
+ if (camman) camman->setFixedYaw (useFixed);
703
+ #endif
704
+
697
705
Vector3 up = Vector3::NEGATIVE_UNIT_Y;
698
706
if (!_up.empty ())
699
707
{
You can’t perform that action at this time.
0 commit comments