mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix design size, from Clemens Pecinovsky
This commit is contained in:
parent
8288ee1ac9
commit
5b4122d2de
@ -294,11 +294,10 @@ find_characters(PandaNode *root, const RenderState *net_state) {
|
||||
CPT(Geom) dot;
|
||||
const RenderState *state = NULL;
|
||||
find_character_gsets(root, ch, dot, state, next_net_state);
|
||||
if (ch != (Geom *)NULL && dot != (Geom *)NULL) {
|
||||
if (dot != (Geom *)NULL) {
|
||||
// Get the first vertex from the "dot" geoset. This will be the
|
||||
// design size indicator.
|
||||
const Geom *geom = DCAST(Geom, ch);
|
||||
GeomVertexReader reader(geom->get_vertex_data(), InternalName::get_vertex());
|
||||
GeomVertexReader reader(dot->get_vertex_data(), InternalName::get_vertex());
|
||||
_line_height = reader.get_data3f()[2];
|
||||
_space_advance = 0.25f * _line_height;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user