File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
119
119
try
120
120
{
121
121
mo = sceneMgr->getMovableObject (name, " Camera" );
122
+
123
+ // with cameras we have an extra CS flip node
124
+ if (mo)
125
+ return *mo->getParentSceneNode ()->getParentSceneNode ();
122
126
}
123
127
catch (ItemIdentityException&)
124
128
{
@@ -385,6 +389,8 @@ class WindowSceneImpl : public WindowScene
385
389
Vector3 t;
386
390
_convertRT (rot, tvec, q, t);
387
391
SceneNode* node = sceneMgr->getRootSceneNode ()->createChildSceneNode (t, q);
392
+ node = node->createChildSceneNode ();
393
+ node->setOrientation (toOGRE); // camera mesh is oriented by OGRE conventions by default
388
394
node->attachObject (cam);
389
395
390
396
RealRect ext = cam->getFrustumExtents ();
You can’t perform that action at this time.
0 commit comments