mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix more white text problems
This commit is contained in:
parent
f58416a234
commit
bba7914821
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user