Browse Source

notify added for nodepath bool 2

Zachary Pavlov 16 years ago
parent
commit
440c6f4131
1 changed files with 2 additions and 1 deletions
  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
 #ifdef HAVE_PYTHON
       PyErr_Warn(PyExc_FutureWarning, (char *)msg);
       PyErr_Warn(PyExc_FutureWarning, (char *)msg);
 #endif
 #endif
+      return !is_empty();
     }
     }
-      return true;
+
 
 
   case ENP_transition:
   case ENP_transition:
     if (!is_empty()) {
     if (!is_empty()) {