瀏覽代碼

report more detail on _cat.info() error

David Rose 19 年之前
父節點
當前提交
331d060a8a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      dtool/src/prc/notifyCategoryProxy.I

+ 4 - 1
dtool/src/prc/notifyCategoryProxy.I

@@ -44,7 +44,10 @@ init() {
 template<class GetCategory>
 INLINE NotifyCategory *NotifyCategoryProxy<GetCategory>::
 get_unsafe_ptr() {
-  nassertr(_ptr != (NotifyCategory *)NULL, init());
+  nassertd(_ptr != (NotifyCategory *)NULL) {
+    init();
+    nout << "Uninitialized notify proxy: " << _ptr->get_fullname() << "\n";
+  }
   return _ptr;
 }