mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
debug output
This commit is contained in:
parent
a5bb653f6e
commit
62c3a5bf1d
@ -64,6 +64,11 @@ clear() {
|
|||||||
void EggNameUniquifier::
|
void EggNameUniquifier::
|
||||||
uniquify(EggNode *node) {
|
uniquify(EggNode *node) {
|
||||||
string category = get_category(node);
|
string category = get_category(node);
|
||||||
|
if (egg_cat.is_debug()) {
|
||||||
|
egg_cat.debug()
|
||||||
|
<< "Uniquifying " << node->get_name() << ", category = " << category
|
||||||
|
<< "\n";
|
||||||
|
}
|
||||||
|
|
||||||
if (!category.empty()) {
|
if (!category.empty()) {
|
||||||
string name = filter_name(node);
|
string name = filter_name(node);
|
||||||
@ -80,6 +85,12 @@ uniquify(EggNode *node) {
|
|||||||
inserted = names.insert(UsedNames::value_type(name, node)).second;
|
inserted = names.insert(UsedNames::value_type(name, node)).second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (egg_cat.is_debug()) {
|
||||||
|
egg_cat.debug()
|
||||||
|
<< "Uniquifying " << node->get_name() << " to "
|
||||||
|
<< name << "\n";
|
||||||
|
}
|
||||||
|
|
||||||
node->set_name(name);
|
node->set_name(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user