ソースを参照

*** empty log message ***

Jesse Schell 24 年 前
コミット
db5f690597
1 ファイル変更3 行追加0 行削除
  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):
         self.setColorScale(1, 1, 1, alpha)
 
+    def setAllColorScale(self, color):
+        self.setColorScale(color, color, color, 1)
+
     def showCS(self, mask = None):
         """showCS(self, mask)
         Shows the collision solids at or below this node.  If mask is