mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
event: squelch unprotected NewFrame event spam warning
This commit is contained in:
parent
79c71a5d97
commit
323f74cb55
@ -46,11 +46,13 @@ queue_event(CPT_Event event) {
|
||||
LightMutexHolder holder(_lock);
|
||||
|
||||
_queue.push_back(event);
|
||||
if (event_cat.is_spam() || event_cat.is_debug()) {
|
||||
if (event_cat.is_debug()) {
|
||||
if (event->get_name() == "NewFrame") {
|
||||
// Don't bother us with this particularly spammy event.
|
||||
if (event_cat.is_spam()) {
|
||||
event_cat.spam()
|
||||
<< "Throwing event " << *event << "\n";
|
||||
}
|
||||
} else {
|
||||
event_cat.debug()
|
||||
<< "Throwing event " << *event << "\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user