fix design size, from Clemens Pecinovsky

This commit is contained in:
David Rose 2009-02-19 17:57:45 +00:00
parent 8288ee1ac9
commit 5b4122d2de

View File

@ -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;
}