diff --git a/pandatool/src/egg-palettize/textureReference.cxx b/pandatool/src/egg-palettize/textureReference.cxx index 5fbf347c31..867ae30cf0 100644 --- a/pandatool/src/egg-palettize/textureReference.cxx +++ b/pandatool/src/egg-palettize/textureReference.cxx @@ -445,11 +445,12 @@ get_uv_range(EggGroupNode *group, Palettizer::RemapUV remap) { if (group->is_of_type(EggGroup::get_class_type())) { EggGroup *egg_group; DCAST_INTO_V(egg_group, group); - if (egg_group->has_objecttype() && - cmp_nocase_uh(egg_group->get_objecttype(), "backstage") == 0) { - // If we reach a node with the "backstage" flag set, - // ignore it and everything under it. - return; + for (int i = 0; i < egg_group->get_num_object_types(); i++) { + if (cmp_nocase_uh(egg_group->get_object_type(i), "backstage") == 0) { + // If we reach a node with the "backstage" flag set, + // ignore it and everything under it. + return; + } } if (egg_group->get_dart_type() != EggGroup::DT_none) { @@ -540,11 +541,12 @@ update_uv_range(EggGroupNode *group, Palettizer::RemapUV remap) { if (group->is_of_type(EggGroup::get_class_type())) { EggGroup *egg_group; DCAST_INTO_V(egg_group, group); - if (egg_group->has_objecttype() && - cmp_nocase_uh(egg_group->get_objecttype(), "backstage") == 0) { - // If we reach a node with the "backstage" flag set, - // ignore it and everything under it. - return; + for (int i = 0; i < egg_group->get_num_object_types(); i++) { + if (cmp_nocase_uh(egg_group->get_object_type(i), "backstage") == 0) { + // If we reach a node with the "backstage" flag set, + // ignore it and everything under it. + return; + } } if (egg_group->get_dart_type() != EggGroup::DT_none) { diff --git a/pandatool/src/egg-palettize/txaLine.cxx b/pandatool/src/egg-palettize/txaLine.cxx index 59245f4899..9458961d70 100644 --- a/pandatool/src/egg-palettize/txaLine.cxx +++ b/pandatool/src/egg-palettize/txaLine.cxx @@ -532,6 +532,10 @@ output(ostream &out) const { case KW_cont: out << " cont"; break; + + case KW_anisotropic: + out << " aniso " << _aniso_degree; + break; } }