Browse Source

update to new lights

Mark Mine 21 years ago
parent
commit
7a57e1e0c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/directtools/DirectUtil.py

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

@@ -50,12 +50,12 @@ def lerpBackgroundColor(r,g,b,duration):
 
 
 # Set direct drawing style for an object
 # Set direct drawing style for an object
 # Never light object or draw in wireframe
 # Never light object or draw in wireframe
-def useDirectRenderStyle(nodePath):
+def useDirectRenderStyle(nodePath, priority = 0):
     """
     """
     Function to force a node path to use direct render style:
     Function to force a node path to use direct render style:
     no lighting, and no wireframe
     no lighting, and no wireframe
     """
     """
-    nodePath.node().setAttrib(LightAttrib.makeAllOff())
+    nodePath.setLightOff(priority)
     nodePath.setRenderModeFilled()
     nodePath.setRenderModeFilled()
 
 
 # File data util
 # File data util