ソースを参照

fix more white text problems

David Rose 18 年 前
コミット
bba7914821
1 ファイル変更8 行追加0 行削除
  1. 8 0
      panda/src/text/fontPool.cxx

+ 8 - 0
panda/src/text/fontPool.cxx

@@ -102,8 +102,16 @@ ns_load_font(const string &str) {
     if (node != (PandaNode *)NULL) {
     if (node != (PandaNode *)NULL) {
       // It is a model.  Elevate all the priorities by 1, and make a
       // It is a model.  Elevate all the priorities by 1, and make a
       // font out of it.
       // 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);
       NodePath np(node);
       np.adjust_all_priorities(1);
       np.adjust_all_priorities(1);
+      */
+
       font = new StaticTextFont(node);
       font = new StaticTextFont(node);
     }
     }
   }
   }