drose: fix crash, more work to do

This commit is contained in:
Jason Yeung 2005-06-01 17:49:38 +00:00
parent 46215d29b7
commit 5c8d1a7e33

View File

@ -830,6 +830,7 @@ transfer_geom(GeomNode *geom_node, const InternalName *texcoord_name,
// to the default name.
const qpGeomVertexColumn *column =
vdata->get_format()->get_column(texcoord_name);
if (column != (const qpGeomVertexColumn *)NULL) {
vdata = vdata->replace_column
(InternalName::get_texcoord(), column->get_num_components(),
column->get_numeric_type(), column->get_contents());
@ -841,6 +842,7 @@ transfer_geom(GeomNode *geom_node, const InternalName *texcoord_name,
to.add_data2f(from.get_data2f());
}
}
}
CPT(RenderState) geom_state = RenderState::make_empty();
if (preserve_color) {