mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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;
|
_play_rate = 1.0;
|
||||||
_do_loop = false;
|
_do_loop = false;
|
||||||
_loop_count = 0;
|
_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 {
|
class EXPCL_DIRECT CInterval : public TypedReferenceCount {
|
||||||
public:
|
public:
|
||||||
CInterval(const string &name, double duration, bool open_ended);
|
CInterval(const string &name, double duration, bool open_ended);
|
||||||
|
virtual ~CInterval();
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE const string &get_name() const;
|
INLINE const string &get_name() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user