فهرست منبع

debugging output

David Rose 18 سال پیش
والد
کامیت
4e39bfdf13
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      panda/src/gobj/geom.cxx

+ 6 - 0
panda/src/gobj/geom.cxx

@@ -623,6 +623,12 @@ rotate_in_place() {
 ////////////////////////////////////////////////////////////////////
 void Geom::
 unify_in_place(int max_indices, bool preserve_order) {
+  if (gobj_cat.is_debug()) {
+    gobj_cat.debug()
+      << "unify_in_place(" << max_indices << ", " << preserve_order
+      << "): " << *this << "\n";
+  }
+
   Thread *current_thread = Thread::get_current_thread();
   if (get_num_primitives() <= 1) {
     // If we don't have more than one primitive to start with, no need