Explorar el Código

changed more debug output

Dave Schuyler hace 21 años
padre
commit
60dd748c27
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      panda/src/physics/physical.cxx

+ 3 - 2
panda/src/physics/physical.cxx

@@ -199,12 +199,13 @@ write_angular_forces(ostream &out, unsigned int indent) const {
 void Physical::
 void Physical::
 write(ostream &out, unsigned int indent) const {
 write(ostream &out, unsigned int indent) const {
   #ifndef NDEBUG //[
   #ifndef NDEBUG //[
-  out.width(indent); out<<""<<"Physical:\n";
+  out.width(indent); out<<""<<"Physical\n";
   write_physics_objects(out, indent+2);
   write_physics_objects(out, indent+2);
   write_linear_forces(out, indent+2);
   write_linear_forces(out, indent+2);
   write_angular_forces(out, indent+2);
   write_angular_forces(out, indent+2);
   if (_phys_body) {
   if (_phys_body) {
-    _phys_body->write(out, indent+2);
+    out.width(indent+2); out<<""<<"_phys_body\n";
+    _phys_body->write(out, indent+4);
   } else {
   } else {
     out.width(indent+2); out<<""<<"_phys_body is null\n";
     out.width(indent+2); out<<""<<"_phys_body is null\n";
   }
   }