mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
add debugging output
This commit is contained in:
parent
3c3fbf8446
commit
4066f9ee8d
@ -53,6 +53,25 @@ CInterval(const string &name, double duration, bool open_ended) :
|
||||
_play_rate = 1.0;
|
||||
_do_loop = false;
|
||||
_loop_count = 0;
|
||||
|
||||
if (interval_cat.is_spam()) {
|
||||
interval_cat.spam()
|
||||
<< "Constructing interval " << (void *)this << ", duration = "
|
||||
<< _duration << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: CInterval::Destructor
|
||||
// Access: Public, Virtual
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
CInterval::
|
||||
~CInterval() {
|
||||
if (interval_cat.is_spam()) {
|
||||
interval_cat.spam()
|
||||
<< "Destructing interval " << (void *)this << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -42,6 +42,7 @@ class CIntervalManager;
|
||||
class EXPCL_DIRECT CInterval : public TypedReferenceCount {
|
||||
public:
|
||||
CInterval(const string &name, double duration, bool open_ended);
|
||||
virtual ~CInterval();
|
||||
|
||||
PUBLISHED:
|
||||
INLINE const string &get_name() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user