Bläddra i källkod

rename showBounds

David Rose 24 år sedan
förälder
incheckning
16d0953cd3
1 ändrade filer med 6 tillägg och 6 borttagningar
  1. 6 6
      direct/src/actor/Actor.py

+ 6 - 6
direct/src/actor/Actor.py

@@ -799,19 +799,19 @@ class Actor(PandaObject, NodePath):
                                   (nodeNum, geomNum))
                                   (nodeNum, geomNum))
             thisGeomNode.node().markBoundStale()
             thisGeomNode.node().markBoundStale()
 
 
-    def showBounds(self):
-        """showBounds(self)
+    def showAllBounds(self):
+        """showAllBounds(self)
         Show the bounds of all actor geoms"""
         Show the bounds of all actor geoms"""
-        geomNodes = self.findAllMatches("**/+GeomNode")
+        geomNodes = self.__geomNode.findAllMatches("**/+GeomNode")
         numGeomNodes = geomNodes.getNumPaths()
         numGeomNodes = geomNodes.getNumPaths()
 
 
         for nodeNum in range(0, numGeomNodes):
         for nodeNum in range(0, numGeomNodes):
             geomNodes.getPath(nodeNum).showBounds()
             geomNodes.getPath(nodeNum).showBounds()
 
 
-    def hideBounds(self):
-        """hideBounds(self)
+    def hideAllBounds(self):
+        """hideAllBounds(self)
         Hide the bounds of all actor geoms"""
         Hide the bounds of all actor geoms"""
-        geomNodes = self.findAllMatches("**/+GeomNode")
+        geomNodes = self.__geomNode.findAllMatches("**/+GeomNode")
         numGeomNodes = geomNodes.getNumPaths()
         numGeomNodes = geomNodes.getNumPaths()
 
 
         for nodeNum in range(0, numGeomNodes):
         for nodeNum in range(0, numGeomNodes):