BGE fix: Font Objects not showing up in the dome mode
authorDalai Felinto <dfelinto@gmail.com>
Fri, 16 Sep 2011 18:23:57 +0000 (18:23 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 16 Sep 2011 18:23:57 +0000 (18:23 +0000)
geez, who coded the font object? or even worse, who did the dome code?
Don't coders talk? tsc tsc ...

Now seriously, KX_KetsjiEngine::RenderFonts() could be moved to inside the KX_Scene class. It probably should (so I could call it from inside KX_Dome::RenderDomeFrame()). Not critical, so not changing it for now.

source/gameengine/Ketsji/KX_KetsjiEngine.cpp

index 65ff064..acd25ac 100644 (file)
@@ -327,6 +327,8 @@ void KX_KetsjiEngine::RenderDome()
                
                                // do the rendering
                                m_dome->RenderDomeFrame(scene,cam, i);
+                               //render all the font objects for this scene
+                               RenderFonts(scene);
                        }
                        
                        list<class KX_Camera*>* cameras = scene->GetCameras();
@@ -344,6 +346,8 @@ void KX_KetsjiEngine::RenderDome()
                        
                                        // do the rendering
                                        m_dome->RenderDomeFrame(scene, (*it),i);
+                                       //render all the font objects for this scene
+                                       RenderFonts(scene);
                                }
                                
                                it++;