mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
support multiple objecttypes
This commit is contained in:
parent
720ca3db24
commit
29e9fe84ec
@ -445,12 +445,13 @@ get_uv_range(EggGroupNode *group, Palettizer::RemapUV remap) {
|
|||||||
if (group->is_of_type(EggGroup::get_class_type())) {
|
if (group->is_of_type(EggGroup::get_class_type())) {
|
||||||
EggGroup *egg_group;
|
EggGroup *egg_group;
|
||||||
DCAST_INTO_V(egg_group, group);
|
DCAST_INTO_V(egg_group, group);
|
||||||
if (egg_group->has_objecttype() &&
|
for (int i = 0; i < egg_group->get_num_object_types(); i++) {
|
||||||
cmp_nocase_uh(egg_group->get_objecttype(), "backstage") == 0) {
|
if (cmp_nocase_uh(egg_group->get_object_type(i), "backstage") == 0) {
|
||||||
// If we reach a <Group> node with the "backstage" flag set,
|
// If we reach a <Group> node with the "backstage" flag set,
|
||||||
// ignore it and everything under it.
|
// ignore it and everything under it.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (egg_group->get_dart_type() != EggGroup::DT_none) {
|
if (egg_group->get_dart_type() != EggGroup::DT_none) {
|
||||||
// If it's a character, we might change the kind of remapping we
|
// If it's a character, we might change the kind of remapping we
|
||||||
@ -540,12 +541,13 @@ update_uv_range(EggGroupNode *group, Palettizer::RemapUV remap) {
|
|||||||
if (group->is_of_type(EggGroup::get_class_type())) {
|
if (group->is_of_type(EggGroup::get_class_type())) {
|
||||||
EggGroup *egg_group;
|
EggGroup *egg_group;
|
||||||
DCAST_INTO_V(egg_group, group);
|
DCAST_INTO_V(egg_group, group);
|
||||||
if (egg_group->has_objecttype() &&
|
for (int i = 0; i < egg_group->get_num_object_types(); i++) {
|
||||||
cmp_nocase_uh(egg_group->get_objecttype(), "backstage") == 0) {
|
if (cmp_nocase_uh(egg_group->get_object_type(i), "backstage") == 0) {
|
||||||
// If we reach a <Group> node with the "backstage" flag set,
|
// If we reach a <Group> node with the "backstage" flag set,
|
||||||
// ignore it and everything under it.
|
// ignore it and everything under it.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (egg_group->get_dart_type() != EggGroup::DT_none) {
|
if (egg_group->get_dart_type() != EggGroup::DT_none) {
|
||||||
// If it's a character, we might change the kind of remapping we
|
// If it's a character, we might change the kind of remapping we
|
||||||
|
@ -532,6 +532,10 @@ output(ostream &out) const {
|
|||||||
case KW_cont:
|
case KW_cont:
|
||||||
out << " cont";
|
out << " cont";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case KW_anisotropic:
|
||||||
|
out << " aniso " << _aniso_degree;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user