|
|
@@ -71,7 +71,7 @@ transform_vertices(Geom *geom, const LMatrix4f &mat) {
|
|
|
|
|
|
nassertr(geom != (Geom *)NULL, false);
|
|
|
|
|
|
- if (geom->is_of_type(qpGeom::get_class_type())) {
|
|
|
+ if (geom->is_qpgeom()) {
|
|
|
qpGeom *qpgeom = DCAST(qpGeom, geom);
|
|
|
|
|
|
qpSourceVertices sv;
|
|
|
@@ -212,7 +212,7 @@ transform_texcoords(Geom *geom, const InternalName *from_name,
|
|
|
bool transformed = false;
|
|
|
|
|
|
nassertr(geom != (Geom *)NULL, false);
|
|
|
- if (geom->is_of_type(qpGeom::get_class_type())) {
|
|
|
+ if (geom->is_qpgeom()) {
|
|
|
qpGeom *qpgeom = DCAST(qpGeom, geom);
|
|
|
|
|
|
qpSourceTexCoords st;
|
|
|
@@ -331,7 +331,7 @@ bool GeomTransformer::
|
|
|
set_color(Geom *geom, const Colorf &color) {
|
|
|
bool transformed = false;
|
|
|
|
|
|
- if (geom->is_of_type(qpGeom::get_class_type())) {
|
|
|
+ if (geom->is_qpgeom()) {
|
|
|
qpGeom *qpgeom = DCAST(qpGeom, geom);
|
|
|
|
|
|
qpSourceColors sc;
|
|
|
@@ -411,7 +411,7 @@ transform_colors(Geom *geom, const LVecBase4f &scale) {
|
|
|
|
|
|
nassertr(geom != (Geom *)NULL, false);
|
|
|
|
|
|
- if (geom->is_of_type(qpGeom::get_class_type())) {
|
|
|
+ if (geom->is_qpgeom()) {
|
|
|
qpGeom *qpgeom = DCAST(qpGeom, geom);
|
|
|
|
|
|
qpSourceColors sc;
|
|
|
@@ -763,7 +763,7 @@ collect_vertex_data(GeomNode *node, int collect_bits) {
|
|
|
GeomNode::Geoms::iterator gi;
|
|
|
for (gi = cdata->_geoms.begin(); gi != cdata->_geoms.end(); ++gi) {
|
|
|
GeomNode::GeomEntry &entry = (*gi);
|
|
|
- if (entry._geom->is_of_type(qpGeom::get_class_type())) {
|
|
|
+ if (entry._geom->is_qpgeom()) {
|
|
|
PT(qpGeom) new_geom = DCAST(qpGeom, entry._geom->make_copy());
|
|
|
entry._geom = new_geom;
|
|
|
|