Browse Source

fix more white text problems

David Rose 18 năm trước cách đây
mục cha
commit
bba7914821
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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) {
       // 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);
     }
   }