Browse Source

*** empty log message ***

Jesse Schell 24 years ago
parent
commit
db5f690597
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/extensions/NodePath-extensions.py

+ 3 - 0
direct/src/extensions/NodePath-extensions.py

@@ -822,6 +822,9 @@
     def setAlphaScale(self, alpha):
     def setAlphaScale(self, alpha):
         self.setColorScale(1, 1, 1, alpha)
         self.setColorScale(1, 1, 1, alpha)
 
 
+    def setAllColorScale(self, color):
+        self.setColorScale(color, color, color, 1)
+
     def showCS(self, mask = None):
     def showCS(self, mask = None):
         """showCS(self, mask)
         """showCS(self, mask)
         Shows the collision solids at or below this node.  If mask is
         Shows the collision solids at or below this node.  If mask is