mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
changed output and write (debug)
This commit is contained in:
parent
097e6bcb5a
commit
455a09b3cc
@ -60,7 +60,7 @@ BaseForce::
|
|||||||
void BaseForce::
|
void BaseForce::
|
||||||
output(ostream &out) const {
|
output(ostream &out) const {
|
||||||
#ifndef NDEBUG //[
|
#ifndef NDEBUG //[
|
||||||
out<<"BaseForce";
|
out<<"BaseForce (id "<<this<<")";
|
||||||
#endif //] NDEBUG
|
#endif //] NDEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,8 +73,16 @@ output(ostream &out) const {
|
|||||||
void BaseForce::
|
void BaseForce::
|
||||||
write(ostream &out, unsigned int indent) const {
|
write(ostream &out, unsigned int indent) const {
|
||||||
#ifndef NDEBUG //[
|
#ifndef NDEBUG //[
|
||||||
out.width(indent); out<<""; out<<"BaseForce:\n";
|
out.width(indent); out<<""; out<<"BaseForce (id "<<this<<"):\n";
|
||||||
out.width(indent+2); out<<""; out<<"_force_node "<<_force_node<<"\n";
|
|
||||||
|
out.width(indent+2); out<<""; out<<"_force_node ";
|
||||||
|
if (_force_node) {
|
||||||
|
out<<_force_node<<"\n";
|
||||||
|
//_force_node->write(out, indent+4);
|
||||||
|
} else {
|
||||||
|
out.width(indent+4); out<<""<<"null\n";
|
||||||
|
}
|
||||||
|
|
||||||
out.width(indent+2); out<<""; out<<"_active "<<_active<<"\n";
|
out.width(indent+2); out<<""; out<<"_active "<<_active<<"\n";
|
||||||
//TypedReferenceCount::write(out);
|
//TypedReferenceCount::write(out);
|
||||||
#endif //] NDEBUG
|
#endif //] NDEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user