浏览代码

don't need priority on setDepthTest and setDepthWrite

David Rose 22 年之前
父节点
当前提交
7fc1d5112d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      direct/src/actor/Actor.py

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

@@ -813,8 +813,8 @@ class Actor(PandaObject, NodePath):
             # Turn off depth test/write on the frontParts.
             # Turn off depth test/write on the frontParts.
             numFrontParts = frontParts.getNumPaths()
             numFrontParts = frontParts.getNumPaths()
             for partNum in range(0, numFrontParts):
             for partNum in range(0, numFrontParts):
-                frontParts[partNum].setDepthWrite(0, 1)
-                frontParts[partNum].setDepthTest(0, 1)
+                frontParts[partNum].setDepthWrite(0)
+                frontParts[partNum].setDepthTest(0)
  
  
         # Find the back part.
         # Find the back part.
         backPart = root.find("**/" + backPartName)
         backPart = root.find("**/" + backPartName)