Quellcode durchsuchen

notify added for nodepath bool 2

Zachary Pavlov vor 16 Jahren
Ursprung
Commit
440c6f4131
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      panda/src/pgraph/nodePath.cxx

+ 2 - 1
panda/src/pgraph/nodePath.cxx

@@ -148,8 +148,9 @@ operator bool () const {
 #ifdef HAVE_PYTHON
       PyErr_Warn(PyExc_FutureWarning, (char *)msg);
 #endif
+      return !is_empty();
     }
-      return true;
+
 
   case ENP_transition:
     if (!is_empty()) {