Darren Ranalli 24 years ago
parent
commit
6608efefe5
2 changed files with 4 additions and 4 deletions
  1. 2 2
      direct/src/directd/directd.cxx
  2. 2 2
      direct/src/directtools/DirectSelection.py

+ 2 - 2
direct/src/directd/directd.cxx

@@ -320,9 +320,9 @@ DirectD::read_command(string& cmd) {
       cerr<<"read_command "<<cmd<<endl;
       cerr<<"read_command "<<cmd<<endl;
     }
     }
     f.close();
     f.close();
-  catch (...) {
+  } catch (...) {
     // This could be bad, I suppose.  But we're going to throw out
     // This could be bad, I suppose.  But we're going to throw out
-    // and exceptions that happen during the above read.
+    // any exceptions that happen during the above read.
     cerr<<"DirectD::read_command() exception."<<endl;
     cerr<<"DirectD::read_command() exception."<<endl;
   }
   }
 }
 }

+ 2 - 2
direct/src/directtools/DirectSelection.py

@@ -431,7 +431,7 @@ class SelectionRay:
                 self.cqIndex = i
                 self.cqIndex = i
                 break
                 break
             # Is it a named node?, If so, see if it has a name
             # Is it a named node?, If so, see if it has a name
-            elif issubclass(node.__class__, NamedNode):
+            elif issubclass(node.__class__, PandaNode):
                 name = node.getName()
                 name = node.getName()
                 if name in self.unpickable:
                 if name in self.unpickable:
                     pass
                     pass
@@ -519,7 +519,7 @@ class SelectionRay:
                 self.cqIndex = i
                 self.cqIndex = i
                 break
                 break
             # Is it a named node?, If so, see if it has a name
             # Is it a named node?, If so, see if it has a name
-            elif issubclass(node.__class__, NamedNode):
+            elif issubclass(node.__class__, PandaNode):
                 name = node.getName()
                 name = node.getName()
                 if name in self.unpickable:
                 if name in self.unpickable:
                     pass
                     pass