From bba7914821a8c705a83bd77eab4d9daf0fd6c1f0 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 31 Jan 2008 03:13:55 +0000 Subject: [PATCH] fix more white text problems --- panda/src/text/fontPool.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/panda/src/text/fontPool.cxx b/panda/src/text/fontPool.cxx index d63b7de5dd..3efd97eae7 100644 --- a/panda/src/text/fontPool.cxx +++ b/panda/src/text/fontPool.cxx @@ -102,8 +102,16 @@ ns_load_font(const string &str) { if (node != (PandaNode *)NULL) { // It is a model. Elevate all the priorities by 1, and make a // font out of it. + + // On second thought, why should we elevate the priorities? The + // DynamicTextFont doesn't do this, and doing so for the + // StaticTextFont only causes problems (it changes the default + // ColorAttrib from pri -1 to pri 0). + /* NodePath np(node); np.adjust_all_priorities(1); + */ + font = new StaticTextFont(node); } }