From 7a57e1e0c2153b142f59815087b37112f7fb9a10 Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Fri, 21 Jan 2005 01:54:56 +0000 Subject: [PATCH] update to new lights --- direct/src/directtools/DirectUtil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/directtools/DirectUtil.py b/direct/src/directtools/DirectUtil.py index 98ae7f62c9..0c5b08bf39 100644 --- a/direct/src/directtools/DirectUtil.py +++ b/direct/src/directtools/DirectUtil.py @@ -50,12 +50,12 @@ def lerpBackgroundColor(r,g,b,duration): # Set direct drawing style for an object # 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: no lighting, and no wireframe """ - nodePath.node().setAttrib(LightAttrib.makeAllOff()) + nodePath.setLightOff(priority) nodePath.setRenderModeFilled() # File data util